diff options
author | Jim Meyering <jim@meyering.net> | 2003-07-18 08:11:55 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-07-18 08:11:55 +0000 |
commit | daced4a5fbe0ac8727bd4d821477d550db2a53cd (patch) | |
tree | 9268478a933a8eb489e5cdfdbdcb6d21383d06d7 | |
parent | 0f16eafda90fa53a9a1d1fccc8243916fd5d77d2 (diff) | |
download | coreutils-daced4a5fbe0ac8727bd4d821477d550db2a53cd.tar.xz |
(--help/--version vs. /dev/full): Special-case
`[' to protect it from expected_failure_status-`eval'.
-rwxr-xr-x | tests/help-version | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/help-version b/tests/help-version index e752fec77..600924766 100755 --- a/tests/help-version +++ b/tests/help-version @@ -57,13 +57,14 @@ for lang in C fr da; do ../src/$i --help >/dev/full 2>/dev/null && fail=1 ../src/$i --version >/dev/full 2>/dev/null && fail=1 status=$? - eval "expected=\$expected_failure_status_$i" + test $i = [ && prog=lbracket || prog=$i + eval "expected=\$expected_failure_status_$prog" test x$expected = x && expected=1 if test $status = $expected; then : # ok else fail=1 - echo "$i with --help and/or --version didn't fail with output" \ + echo "*** $i with --help and/or --version didn't fail with output" \ "redirected to /dev/full" 1>&2 fi fi |