summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/failover_soak.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-06-16 20:32:04 +0000
committerAlan Conway <aconway@apache.org>2010-06-16 20:32:04 +0000
commit5d356715fd93ee1c072b482cf13b5ed62a1dc493 (patch)
tree70fe4ea4922a7160fb6c04f55a162d3d69a8097c /qpid/cpp/src/tests/failover_soak.cpp
parent8987ad188ef16f7ab2ad028017a88acc227f183a (diff)
downloadqpid-python-5d356715fd93ee1c072b482cf13b5ed62a1dc493.tar.gz
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@955370 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/failover_soak.cpp')
-rw-r--r--qpid/cpp/src/tests/failover_soak.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/failover_soak.cpp b/qpid/cpp/src/tests/failover_soak.cpp
index f61a565f50..c2ac36a757 100644
--- a/qpid/cpp/src/tests/failover_soak.cpp
+++ b/qpid/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;