From a6801aa6ac2c6d97b6747ef7bd7d2264be9c58ab Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 16 Jun 2010 20:32:04 +0000 Subject: Bug 603835 - cluster_tests.test_management failing. Clean up connections causing extra connection objects in the mangement agent map. - update connection was not being closed. - connections belonging to members that left the cluster were not fully cleaned up Also fixed test errors making failover_soak fail sporadically. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@955370 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/failover_soak.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cpp/src/tests') diff --git a/cpp/src/tests/failover_soak.cpp b/cpp/src/tests/failover_soak.cpp index f61a565f50..c2ac36a757 100644 --- a/cpp/src/tests/failover_soak.cpp +++ b/cpp/src/tests/failover_soak.cpp @@ -673,7 +673,7 @@ main ( int argc, char const ** argv ) // Get prefix for each queue name. stringstream queue_prefix; queue_prefix << "failover_soak_" << getpid(); - + string queue_prefix_str(queue_prefix.str()); // Run the declareQueues child. int childStatus; @@ -683,7 +683,7 @@ main ( int argc, char const ** argv ) declareQueuesPath, verbosity, durable, - queue_prefix.str().c_str(), + queue_prefix_str.c_str(), n_queues ); if ( -1 == dqClientPid ) { @@ -707,6 +707,7 @@ main ( int argc, char const ** argv ) stringstream queue_name; queue_name << queue_prefix.str() << '_' << i; + string queue_name_str(queue_name.str()); // Receiving client --------------------------- pid_t receivingClientPid = @@ -715,7 +716,7 @@ main ( int argc, char const ** argv ) receiverPath, reportFrequency, verbosity, - queue_name.str().c_str() ); + queue_name_str.c_str() ); if ( -1 == receivingClientPid ) { cerr << "END_OF_TEST ERROR_START_RECEIVER\n"; return CANT_FORK_RECEIVER; @@ -731,7 +732,7 @@ main ( int argc, char const ** argv ) reportFrequency, verbosity, durable, - queue_name.str().c_str() ); + queue_name_str.c_str() ); if ( -1 == sendingClientPid ) { cerr << "END_OF_TEST ERROR_START_SENDER\n"; return CANT_FORK_SENDER; -- cgit v1.2.1