summaryrefslogtreecommitdiff
path: root/tests/misc/timeout.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/timeout.sh')
-rwxr-xr-xtests/misc/timeout.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/timeout.sh b/tests/misc/timeout.sh
index 6b5a6f10..8eaeef95 100755
--- a/tests/misc/timeout.sh
+++ b/tests/misc/timeout.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Validate timeout basic operation
-# Copyright (C) 2008-2013 Free Software Foundation, Inc.
+# Copyright (C) 2008-2014 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -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