summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/ClusterFailover.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-08-04 19:25:28 +0000
committerAlan Conway <aconway@apache.org>2010-08-04 19:25:28 +0000
commit2a3b6c26ab0dc39286eb2a3df952d6aabefd87fd (patch)
treeb2ef755beaa8d4cb26d02a7b03b774dd0c4d7d07 /qpid/cpp/src/tests/ClusterFailover.cpp
parentff346c19aa68b458eabde29c6a3fbfb24a0fd378 (diff)
downloadqpid-python-2a3b6c26ab0dc39286eb2a3df952d6aabefd87fd.tar.gz
Fix ClusterFailover.cpp and ForkedBroker.cpp to avoid using the default data directory.
Was causing tests to fail because of a pre-existing lock file in the default data dir. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@982374 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/ClusterFailover.cpp')
-rw-r--r--qpid/cpp/src/tests/ClusterFailover.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/ClusterFailover.cpp b/qpid/cpp/src/tests/ClusterFailover.cpp
index 06fc1c06be..bf5c147f19 100644
--- a/qpid/cpp/src/tests/ClusterFailover.cpp
+++ b/qpid/cpp/src/tests/ClusterFailover.cpp
@@ -50,9 +50,15 @@ using boost::shared_ptr;
// Timeout for tests that wait for messages
const sys::Duration TIMEOUT=sys::TIME_SEC/4;
-ClusterFixture::Args getArgs() {
+ClusterFixture::Args getArgs(bool durable=std::getenv("STORE_LIB"))
+{
ClusterFixture::Args args;
- args += "--auth", "no", "--no-module-dir", "--load-module", getLibPath("CLUSTER_LIB");
+ args += "--auth", "no", "--no-module-dir",
+ "--load-module", getLibPath("CLUSTER_LIB");
+ if (durable)
+ args += "--load-module", getLibPath("STORE_LIB"), "TMP_DATA_DIR";
+ else
+ args += "--no-data-dir";
return args;
}
@@ -87,7 +93,7 @@ QPID_AUTO_TEST_CASE(testReconnectExclusiveQueue) {
// Regression: core dump on exit if unacked messages were left in
// a session with a timeout.
- cluster.kill(0);
+ cluster.killWithSilencer(0, c0.connection);
// Regression: session timeouts prevented re-connecting to
// exclusive queue.