From 04fc32f7e038e92e033c770211749be683c74973 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 1 Jul 2014 09:40:50 -0700 Subject: tests: use "env builtin" in place of "$abs_top_builddir/src/builtin" This works for any program that might also be a shell built-in. It is more concise. In addition, it makes output more reproducible: some diagnostics include argv[0], which will now be just the program name, rather than the full absolute name of the executable. * tests/misc/sort-compress.sh: Use env kill, rather than absolute name. * tests/install/trap.sh: Likewise. * tests/misc/timeout.sh: Likewise. * tests/touch/no-dereference.sh: Do the same for two uses of "test". * tests/touch/no-create-missing.sh: Likewise. --- tests/misc/timeout.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/misc/timeout.sh') diff --git a/tests/misc/timeout.sh b/tests/misc/timeout.sh index 247c2fc4c..8eaeef958 100755 --- a/tests/misc/timeout.sh +++ b/tests/misc/timeout.sh @@ -51,7 +51,7 @@ test $? = 124 && fail=1 # Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh. ( # ash doesn't support "trap '' CHLD"; it knows only signal numbers. - sig=$("$abs_top_builddir/src/kill" -l CHLD 2>/dev/null) && trap '' $sig + sig=$(env kill -l CHLD 2>/dev/null) && trap '' $sig exec timeout 10 true ) || fail=1 -- cgit v1.2.3-54-g00ecf