summaryrefslogtreecommitdiff
path: root/tests/misc/timeout
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/timeout')
-rwxr-xr-xtests/misc/timeout5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/misc/timeout b/tests/misc/timeout
index 7506e7cf9..04465e116 100755
--- a/tests/misc/timeout
+++ b/tests/misc/timeout
@@ -51,4 +51,9 @@ test $? = 124 && fail=1
exec timeout 10 true
) || fail=1
+# Don't be confused when starting off with a child (Bug#9098).
+out=$(sleep 1 & exec timeout 2 sh -c 'sleep 3; echo foo')
+status=$?
+test "$out" = "" && test $status = 124 || fail=1
+
Exit $fail