summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-12-15 09:07:18 +0000
committerJim Meyering <jim@meyering.net>2001-12-15 09:07:18 +0000
commitb094fe9daa8d02e5e3ca90a52b40bff41c9748fa (patch)
tree067e6c86838a4d224198fc0b6d4d86b05efd592b
parent16a1aff95a80c963f1f638cb3b070e4974c98391 (diff)
downloadcoreutils-b094fe9daa8d02e5e3ca90a52b40bff41c9748fa.tar.xz
Fail also if ./$i --version fails.
-rwxr-xr-xtests/help-version2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/help-version b/tests/help-version
index d0ae9a4d6..0833aeee3 100755
--- a/tests/help-version
+++ b/tests/help-version
@@ -53,7 +53,7 @@ for i in $all_programs; do
# Make sure they fail upon `disk full' error.
if test -w /dev/full && test -c /dev/full; then
./$i --help >/dev/full 2>/dev/null && fail=1
- ./$i --version >/dev/full 2>/dev/null
+ ./$i --version >/dev/full 2>/dev/null && fail=1
status=$?
eval "expected=\$expected_failure_status_$i"
test x$expected = x && expected=1