fix failures found by randomconfig builds

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2013-12-31 23:22:36 +01:00
parent 61be8e46a8
commit 198b02f7dd
7 changed files with 34 additions and 13 deletions

View File

@@ -25,10 +25,12 @@ tar: short read
SKIP=
optional FEATURE_SEAMLESS_GZ
# In NOMMU case, "invalid magic" message comes from gunzip child process.
# Otherwise, it comes from tar.
# Need to fix output up to avoid false positive.
testing "Empty file is not a tarball.tar.gz" '\
tar xvzf - 2>&1; echo $?
{ tar xvzf - 2>&1; echo $?; } | grep -Fv "invalid magic"
' "\
tar: invalid magic
tar: short read
1
" \