summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/wc-files0.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/wc-files0.sh b/tests/misc/wc-files0.sh
index 4562e6a4e..12b7d6afe 100755
--- a/tests/misc/wc-files0.sh
+++ b/tests/misc/wc-files0.sh
@@ -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