From f3cec6986a366d133a08647279a38393a9769718 Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Fri, 1 May 2009 19:17:59 +0000 Subject: Cluster test code now has a persistence switch controlled by the environment. When this switch set, all brokers start with the store module loaded, all queues are declared persistent and all messages are also made persistent. The absolute paths to module libs hardcoded into the test fixtures have been replaced by paths relative to environment variable QPID_LIB_DIR (which is set in Makefile.am). The cluster test, when run from qpid, will continue to run without persistence by default; the intention is to have the store test code run this test directly with the switch turned on. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@770796 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/ClusterFailover.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src/tests/ClusterFailover.cpp') diff --git a/cpp/src/tests/ClusterFailover.cpp b/cpp/src/tests/ClusterFailover.cpp index db2392b296..7d49ed5cda 100644 --- a/cpp/src/tests/ClusterFailover.cpp +++ b/cpp/src/tests/ClusterFailover.cpp @@ -50,7 +50,10 @@ const sys::Duration TIMEOUT=sys::TIME_SEC/4; // Test re-connecting with same session name after a failure. QPID_AUTO_TEST_CASE(testReconnectSameSessionName) { - ClusterFixture cluster(2, -1); + ostringstream clusterLib; + clusterLib << getLibPath("QPID_LIB_DIR", "../.libs") << "/cluster.so"; + ClusterFixture::Args args = list_of("--auth")("no")("--no-module-dir")("--no-data-dir")("--load-module")(clusterLib.str()); + ClusterFixture cluster(2, args, -1); Client c0(cluster[0], "foo"); cluster.kill(0, 9); Client c1(cluster[1], "foo"); // Using same name, should be cleaned up. -- cgit v1.2.1