From eff5b46e0cbf606da47e60ecc0272d87c43946ac Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 6 Nov 2002 09:23:23 +0000 Subject: [PATCH] Be careful to test the code in this package, not the shell built-in function. --- tests/misc/printf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.2