summaryrefslogtreecommitdiff
path: root/tests/misc/printf-surprise
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-05-12 08:49:58 +0200
committerJim Meyering <meyering@redhat.com>2008-05-16 10:10:34 +0200
commit4a4fe636dcef1c71c6aef423be0c6788f9d46c40 (patch)
tree4cb09a287385b813eab8b6768b08ff5d888290bb /tests/misc/printf-surprise
parentc6a39372882f8a2b46fa2f2c6b11051c28eded20 (diff)
downloadcoreutils-4a4fe636dcef1c71c6aef423be0c6788f9d46c40.tar.xz
tests: env-related clean up
* tests/Coreutils.pm: tiny clean-up: s/env/env --/ * tests/misc/help-version: Use "env" rather than an absolute file name prefix. * tests/misc/printf-surprise: Likewise.
Diffstat (limited to 'tests/misc/printf-surprise')
-rwxr-xr-xtests/misc/printf-surprise6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/misc/printf-surprise b/tests/misc/printf-surprise
index 905660262..64fdad017 100755
--- a/tests/misc/printf-surprise
+++ b/tests/misc/printf-surprise
@@ -16,11 +16,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-prog="$abs_top_builddir/src/printf"
+prog=printf
if test "$VERBOSE" = yes; then
set -x
- "$prog" --version
+ env $prog --version
fi
. $top_srcdir/tests/test-lib.sh
@@ -50,7 +50,7 @@ fail=0
# triggering the printf(3) misbehavior -- which, btw, is required by ISO C99.
( ulimit -v 10000
- "$prog" %20000000f 0 2>err | head -c 10 >out )
+ env $prog %20000000f 0 2>err | head -c 10 >out )
# Map this longer, and rarer, diagnostic to the common one.
# printf: cannot perform formatted output: Cannot allocate memory" \