]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: include part of wc-files0.sh skipped by mistake
authorPádraig Brady <P@draigBrady.com>
Sat, 9 Jan 2016 01:24:20 +0000 (01:24 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 13 Jan 2016 11:11:36 +0000 (11:11 +0000)
* tests/misc/wc-files0.sh: $fail is always set to 0,
so correct the test to include that part of the test case.

tests/misc/wc-files0.sh

index 4562e6a4eeb3a24894f6bdc50f315bd00e26f588..12b7d6afe8f725884bca92f7bf7270445ff1edb0 100755 (executable)
@@ -33,7 +33,7 @@ EOF
 
 compare exp out || fail=1
 
-if test "$fail" = ''; then
+if ! test "$fail" = 1; then
   # Repeat the above test, but read the file name list from stdin.
   rm -f out
   wc --files0-from=- < names > out || fail=1