From 684bc366bc18244a9c5a26c3f213ca6fef7e5aec Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Sun, 20 Dec 2009 01:07:26 +0100 Subject: [PATCH] little more sane watchdog handling, interrupt and break the watchdog when the test finished --- tests/test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test.sh b/tests/test.sh index 0cff9fa..35b3c6a 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -393,8 +393,12 @@ function TEST() # watchdog ( sleep $LIMIT_TIME_REAL && kill -KILL $pid ) &>/dev/null & + wpid=$! wait $pid return=$(<,return) + if [[ "$return" -le 128 ]]; then + kill -INT $wpid >&/dev/null + fi if test -f ,expect_stdout; then grep -v "$LOGSUPPRESS" <,stdout >,tmp -- 2.11.4.GIT