summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-12-16 13:40:59 +0000
committerAlan Conway <aconway@apache.org>2009-12-16 13:40:59 +0000
commite45e77a4e08b067326b966797dc152f2fb3bc05c (patch)
tree4a4f6f7785eb215a4f9ca2ba92b6a6ded82e7308
parent9a3a976da2e72cc86f367ab30e7b5be88b8a161b (diff)
downloadqpid-python-e45e77a4e08b067326b966797dc152f2fb3bc05c.tar.gz
test_watchdog: trivial test fix, check exit status of qpidd.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@891235 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/cpp/src/tests/test_watchdog4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/test_watchdog b/qpid/cpp/src/tests/test_watchdog
index 2e9967ee24..b9e0f4cd08 100755
--- a/qpid/cpp/src/tests/test_watchdog
+++ b/qpid/cpp/src/tests/test_watchdog
@@ -22,8 +22,8 @@
# Tests for the watchdog plug-in
# Start a broker with watchdog, freeze it with kill -STOP, verify that it is killed.
-PORT=`$QPIDD_EXEC -dp0 --no-data-dir --auth=no --no-module-dir --load-module $WATCHDOG_LIB --log-to-file=qpidd_watchdog.log --watchdog-interval 1`
-PID=`$QPIDD_EXEC --no-module-dir -cp $PORT`
+PORT=`$QPIDD_EXEC -dp0 --no-data-dir --auth=no --no-module-dir --load-module $WATCHDOG_LIB --log-to-file=qpidd_watchdog.log --watchdog-interval 1` || exit 1
+PID=`$QPIDD_EXEC --no-module-dir -cp $PORT` || exit 1
kill -STOP $PID
sleep 2