summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-12-16 19:31:20 +0000
committerAlan Conway <aconway@apache.org>2009-12-16 19:31:20 +0000
commit52168935fd1c45adf6869881ac02abd59f651044 (patch)
treecbfa31790c3d5c637e0efce4bbc7d8eeb08a7d36
parentb094cc97df783ad9b426eba2c38deecf353d1d79 (diff)
downloadqpid-python-52168935fd1c45adf6869881ac02abd59f651044.tar.gz
QPID-2282: test_watchdog failing due to incorrect use of env. vars
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@891395 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/cluster/WatchDogPlugin.cpp2
-rwxr-xr-xqpid/cpp/src/tests/test_watchdog1
2 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/cluster/WatchDogPlugin.cpp b/qpid/cpp/src/qpid/cluster/WatchDogPlugin.cpp
index 43dba5e09b..fc2b830dac 100644
--- a/qpid/cpp/src/qpid/cluster/WatchDogPlugin.cpp
+++ b/qpid/cpp/src/qpid/cluster/WatchDogPlugin.cpp
@@ -113,7 +113,7 @@ struct WatchDogPlugin : public qpid::Plugin, public qpid::sys::Fork {
protected:
void child() { // Child of fork
- const char* watchdog = ::getenv("QPID_WATCHDOG_EXE"); // For use in tests
+ const char* watchdog = ::getenv("QPID_WATCHDOG_EXEC"); // For use in tests
if (!watchdog) watchdog=QPID_EXEC_DIR "/qpidd_watchdog";
std::string interval = boost::lexical_cast<std::string>(settings.interval);
::execl(watchdog, watchdog, interval.c_str(), NULL);
diff --git a/qpid/cpp/src/tests/test_watchdog b/qpid/cpp/src/tests/test_watchdog
index b9e0f4cd08..5afdaa5e24 100755
--- a/qpid/cpp/src/tests/test_watchdog
+++ b/qpid/cpp/src/tests/test_watchdog
@@ -21,6 +21,7 @@
# Tests for the watchdog plug-in
+source ./test_env.sh
# 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` || exit 1
PID=`$QPIDD_EXEC --no-module-dir -cp $PORT` || exit 1