diff options
-rwxr-xr-x | tests/misc/printf | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/misc/printf b/tests/misc/printf index 4e215026b..cbca7ea4e 100755 --- a/tests/misc/printf +++ b/tests/misc/printf @@ -1,9 +1,11 @@ #!/bin/sh # basic tests for printf +prog=`pwd`/../../src/printf + if test "$VERBOSE" = yes; then set -x - printf --version + $prog --version fi pwd=`pwd` @@ -24,7 +26,7 @@ fail=0 # This would fail (by printing the `--') for printf in sh-utils # and in coreutils 4.5.1. -printf -- 'foo\n' > out || fail=1 +$prog -- 'foo\n' > out || fail=1 cat <<\EOF > exp foo EOF |