From 4a4fe636dcef1c71c6aef423be0c6788f9d46c40 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 12 May 2008 08:49:58 +0200 Subject: 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. --- tests/misc/printf-surprise | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/misc/printf-surprise') 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 . -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" \ -- cgit v1.2.3-54-g00ecf