tests: avoid a race in timeout-group.sh
commit751a4c4d036d83b98ac39cfcb2de4de10f1139e1
authorPádraig Brady <P@draigBrady.com>
Tue, 18 Dec 2012 13:06:15 +0000 (18 13:06 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 19 Dec 2012 11:32:07 +0000 (19 11:32 +0000)
treef3a018a71760f76ec97ee3d03defc52e14899e5d
parent82b1728c4b03f80c56eae0f59d0e9a75e3d2bf9f
tests: avoid a race in timeout-group.sh

* tests/misc/timeout-group.sh: The kernel might possibly delay
signal propagation to timeout.cmd long enough, that it exits
normally without running the signal handler (as sleep will
be in the same process group and so get the signal too).
So avoid this by explicitly checking that the signal handler
is called, which should always happen under normal circumstances.
Reported by Stefano Lattarini on linux-2.6.30-2-686 and bash-4.2.36.
tests/misc/timeout-group.sh