From: Jim Meyering Date: Wed, 6 Nov 2002 09:23:23 +0000 (+0000) Subject: Be careful to test the code in this package, not the shell built-in function. X-Git-Tag: v4.5.4~315 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eff5b46e0cbf606da47e60ecc0272d87c43946ac;p=thirdparty%2Fcoreutils.git Be careful to test the code in this package, not the shell built-in function. --- diff --git a/tests/misc/printf b/tests/misc/printf index 4e215026b4..cbca7ea4e3 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