From: Denys Vlasenko Date: Tue, 19 Nov 2013 13:52:02 +0000 (+0100) Subject: tar: add a testcase for previous commit X-Git-Tag: 1_22_0~39 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1cbc642bed8307a78ccec655d2db61a2ce21596c;p=oweals%2Fbusybox.git tar: add a testcase for previous commit Signed-off-by: Denys Vlasenko --- diff --git a/testsuite/tar.tests b/testsuite/tar.tests index 7927020c1..1bdd5d437 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests @@ -15,6 +15,18 @@ mkdir tar.tempdir && cd tar.tempdir || exit 1 # testing "test name" "script" "expected result" "file input" "stdin" +# Empty file is not a valid .tar.gz: +optional FEATURE_SEAMLESS_GZ +testing "tar hardlinks and repeated files" '\ +tar xvzf - 2>&1; echo $? +' "\ +tar: invalid magic +tar: short read +1 +" \ +"" "" +SKIP= + optional FEATURE_TAR_CREATE FEATURE_LS_SORTFILES testing "tar hardlinks and repeated files" '\ rm -rf input_* test.tar 2>/dev/null