summaryrefslogtreecommitdiff
path: root/tests/help-version
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-26 06:48:40 +0000
committerJim Meyering <jim@meyering.net>2003-07-26 06:48:40 +0000
commit40d1cfe7293b4e922718d3689dc7f23dc3319b49 (patch)
treeb44f84bffecfbe4c89d72fbf5f6ce797bebe3a1b /tests/help-version
parent3ad9bec32d9f02de5cb5dea74b6e59c90c7eeef8 (diff)
downloadcoreutils-40d1cfe7293b4e922718d3689dc7f23dc3319b49.tar.xz
Adjust for above change in test behavior:
`[' exits with 2, not 1, and test doesn't accept --help or --version.
Diffstat (limited to 'tests/help-version')
-rwxr-xr-xtests/help-version8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/help-version b/tests/help-version
index 9518bf4dc..c5c4d86a9 100755
--- a/tests/help-version
+++ b/tests/help-version
@@ -9,6 +9,7 @@ expected_failure_status_printenv=2
expected_failure_status_tty=3
expected_failure_status_sort=2
expected_failure_status_expr=3
+expected_failure_status_lbracket=2
case "$all_programs" in
*groups*)
@@ -39,6 +40,9 @@ fail=0
for lang in C fr da; do
for i in $all_programs; do
+ # Skip `test'; it doesn't accept --help or --version.
+ test $i = test && continue;
+
# false fails even when invoked with --help or --version.
if test $i = false; then
env LC_MESSAGES=$lang ../src/$i --help >/dev/null && fail=1
@@ -65,8 +69,8 @@ for lang in C fr da; do
: # ok
else
fail=1
- echo "*** $i with --help and/or --version didn't fail with output" \
- "redirected to /dev/full" 1>&2
+ echo "*** $i: bad exit status \`$status' (expected $expected)," 1>&2
+ echo " with --help or --version output redirected to /dev/full" 1>&2
fi
fi
done