]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Be careful to test the code in this package, not the shell built-in function.
authorJim Meyering <jim@meyering.net>
Wed, 6 Nov 2002 09:23:23 +0000 (09:23 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 6 Nov 2002 09:23:23 +0000 (09:23 +0000)
tests/misc/printf

index 4e215026b4410f10d3c22daf0307654373fe0683..cbca7ea4e37df51dbd6b76591439e3f13be9b383 100755 (executable)
@@ -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