summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-02-19 18:32:54 +0100
committerJim Meyering <meyering@redhat.com>2012-02-26 09:48:48 +0100
commit72addfcac9c109e3bde5f6a398d39f7a188ce77c (patch)
tree04faa5dac864fb91e37a24d4f4026833b1b62d81
parentf19747455eb0f2e44a61582e16ee5a1a8c7af08d (diff)
downloadcoreutils-72addfcac9c109e3bde5f6a398d39f7a188ce77c.tar.xz
tests: fix help-version on cygwin, where $EXEEXT is nonempty
* tests/misc/help-version: Remove the $EXEEXT suffix from each program name before comparing with a literal.
-rwxr-xr-xtests/misc/help-version4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/help-version b/tests/misc/help-version
index c89d11856..7416062fa 100755
--- a/tests/misc/help-version
+++ b/tests/misc/help-version
@@ -100,7 +100,7 @@ for lang in C fr da; do
env $i --help >/dev/full 2>/dev/null && fail=1
env $i --version >/dev/full 2>/dev/null && fail=1
status=$?
- test $i = [ && prog=lbracket || prog=$i
+ test $i = [ && prog=lbracket || prog=$(echo $i|sed "s/$EXEEXT$//")
eval "expected=\$expected_failure_status_$prog"
test x$expected = x && expected=1
if test $status = $expected; then
@@ -265,7 +265,7 @@ for i in $built_programs; do
cp $tmp_in $tmp_in2
mkdir $tmp_dir
# echo ================== $i
- test $i = [ && prog=lbracket || prog=$i
+ test $i = [ && prog=lbracket || prog=$(echo $i|sed "s/$EXEEXT$//")
if type ${prog}_setup > /dev/null 2>&1; then
${prog}_setup
else