From: Topher Lubaway Date: Tue, 19 Jun 2018 16:56:37 +0000 (-0700) Subject: Tests to verify piped input to `--list` exits 1 X-Git-Tag: v1.3.5~3^2~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bac1db28f383d0d6e05296f157f7dcfdf881452;p=thirdparty%2Fzstd.git Tests to verify piped input to `--list` exits 1 I'm following the pattern that i saw in the rest of the test file please tell me if i am using the wrong conventions --- diff --git a/tests/playTests.sh b/tests/playTests.sh index 48001c2eb..3b872d281 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -729,6 +729,9 @@ $ECHO "\n===> zstd --list/-l error detection tests " ! $ZSTD -lv tmp1* ! $ZSTD --list -v tmp2 tmp12.zst +$ECHO "\n===> zstd --list/-l exits 1 when stdin is piped in" +! echo "piped STDIN" | $ZSTD --list + $ECHO "\n===> zstd --list/-l test with null files " ./datagen -g0 > tmp5 $ZSTD tmp5