summaryrefslogtreecommitdiff
path: root/tests/misc/help-version
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-05-12 00:27:37 +0200
committerJim Meyering <meyering@redhat.com>2008-05-16 10:10:34 +0200
commitc6a39372882f8a2b46fa2f2c6b11051c28eded20 (patch)
tree1461cddc1e12a3f1395b03bbb84b8b2f5725a2f9 /tests/misc/help-version
parent0bf3eb36827ece0e468320f4b3b5a409e06e67aa (diff)
downloadcoreutils-c6a39372882f8a2b46fa2f2c6b11051c28eded20.tar.xz
tests: improve coverage of printf.c
* tests/misc/printf-cov: New file. * tests/Makefile.am (TESTS): Add misc/printf-cov. * tests/misc/help-version: Use env rather than abs file name prefix.
Diffstat (limited to 'tests/misc/help-version')
-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 f383fa64d..b14c1536a 100755
--- a/tests/misc/help-version
+++ b/tests/misc/help-version
@@ -70,8 +70,8 @@ for lang in C fr da; do
# Make sure they fail upon `disk full' error.
if test -w /dev/full && test -c /dev/full; then
- "$abs_top_builddir/src/$i" --help >/dev/full 2>/dev/null && fail=1
- "$abs_top_builddir/src/$i" --version >/dev/full 2>/dev/null && fail=1
+ 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
eval "expected=\$expected_failure_status_$prog"