]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Tests to verify piped input to `--list` exits 1 1179/head
authorTopher Lubaway <asimplechris@gmail.com>
Tue, 19 Jun 2018 16:56:37 +0000 (09:56 -0700)
committerTopher Lubaway <asimplechris@gmail.com>
Tue, 19 Jun 2018 16:56:37 +0000 (09:56 -0700)
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

tests/playTests.sh

index 48001c2eb8e529cc9ec2df08d580e83e8bf62ef2..3b872d281b35aa6e5af8a4295cb57add242543b0 100755 (executable)
@@ -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