summaryrefslogtreecommitdiff
path: root/tests/misc/help-version
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-05-12 08:49:58 +0200
committerJim Meyering <meyering@redhat.com>2008-05-16 10:10:34 +0200
commit4a4fe636dcef1c71c6aef423be0c6788f9d46c40 (patch)
tree4cb09a287385b813eab8b6768b08ff5d888290bb /tests/misc/help-version
parentc6a39372882f8a2b46fa2f2c6b11051c28eded20 (diff)
downloadcoreutils-4a4fe636dcef1c71c6aef423be0c6788f9d46c40.tar.xz
tests: env-related clean up
* tests/Coreutils.pm: tiny clean-up: s/env/env --/ * tests/misc/help-version: Use "env" rather than an absolute file name prefix. * tests/misc/printf-surprise: Likewise.
Diffstat (limited to 'tests/misc/help-version')
-rwxr-xr-xtests/misc/help-version12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/misc/help-version b/tests/misc/help-version
index b14c1536a..77e54c7b4 100755
--- a/tests/misc/help-version
+++ b/tests/misc/help-version
@@ -50,10 +50,8 @@ for lang in C fr da; do
# false fails even when invoked with --help or --version.
if test $i = false; then
- env LC_MESSAGES=$lang "$abs_top_builddir/src/$i" --help \
- >/dev/null && fail=1
- env LC_MESSAGES=$lang "$abs_top_builddir/src/$i" --version \
- >/dev/null && fail=1
+ env LC_MESSAGES=$lang $i" --help >/dev/null && fail=1
+ env LC_MESSAGES=$lang $i" --version >/dev/null && fail=1
continue
fi
@@ -61,8 +59,8 @@ for lang in C fr da; do
test $i = install && i=ginstall
# Make sure they exit successfully, under normal conditions.
- "$abs_top_builddir/src/$i" --help > h-$i || fail=1
- "$abs_top_builddir/src/$i" --version >/dev/null || fail=1
+ env $i --help > h-$i || fail=1
+ env $i --version >/dev/null || fail=1
# Make sure they mention the bug-reporting address in --help output.
grep "$PACKAGE_BUGREPORT" h-$i > /dev/null || fail=1
@@ -188,7 +186,7 @@ for i in $built_programs; do
# echo ================== $i
test $i = [ && prog=lbracket || prog=$i
eval "args=\$${prog}_args"
- if "$abs_top_builddir/src/$i" $args < $tmp_in > $tmp_out; then
+ if env $i $args < $tmp_in > $tmp_out; then
: # ok
else
echo FAIL: $i