summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/perftest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-12-07 19:13:09 +0000
committerAlan Conway <aconway@apache.org>2007-12-07 19:13:09 +0000
commit93a87010ba58b42e2fe153504b4781978d128a6c (patch)
tree27c545a130a3ed4c83472db2c2ae07306c862e5a /qpid/cpp/src/tests/perftest.cpp
parent506d0479f23c39f75dc03a22f4b8adf52d281022 (diff)
downloadqpid-python-93a87010ba58b42e2fe153504b4781978d128a6c.tar.gz
Summary:
- Replaced InProcessBroker with BrokerFixture, uses a full loopback broker for more realistic tests. - Extracted non-generated parts of Session_0_10 into SessionBase. - Sundry small fixes. src/tests/BrokerFixture.h - in process broker with loopback connections. - tests can force a disorderly disconnect. src/qpid/client/Connector.h - back door to private members for BrokerFixture. - close() in destructor to avoid leaks. src/qpid/client/ConnectionImpl.h,cpp: - close() in destructor, to fix hang when destroyed without being closed. src/qpid/client/CompletionTracker.h,.cpp: - Fixed race in close/add. src/qpid/client/SessionBase.h,cpp: - Extracted all non-generated code from Session_0_10 into SessionBase - Added sync() src/tests/exception_test.cpp: Converted to boost & BrokerFixture src/tests/ClientChannelTest.cpp, ClientSessionTest.cpp: Use BrokerFixture git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@602182 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/perftest.cpp')
-rw-r--r--qpid/cpp/src/tests/perftest.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/qpid/cpp/src/tests/perftest.cpp b/qpid/cpp/src/tests/perftest.cpp
index bd2c0d9933..d6185a0100 100644
--- a/qpid/cpp/src/tests/perftest.cpp
+++ b/qpid/cpp/src/tests/perftest.cpp
@@ -205,7 +205,7 @@ struct Setup : public Client {
}
}
// Make sure this is all completed before we return.
- session.execution().sendSyncRequest();
+ session.getExecution().sendSyncRequest();
}
};
@@ -231,13 +231,9 @@ class Stats {
// Functor to collect rates.
void operator()(const string& data) {
- try {
- double d=lexical_cast<double>(data);
- values.push_back(d);
- sum += d;
- } catch (...) {
- throw Exception(QPID_MSG("Bad data, expecting double: " << data));
- }
+ double d=lexical_cast<double>(data);
+ values.push_back(d);
+ sum += d;
}
double mean() const {