summaryrefslogtreecommitdiff
path: root/cpp/src/tests/qpid_ping.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-05-13 18:54:50 +0000
committerAlan Conway <aconway@apache.org>2010-05-13 18:54:50 +0000
commit87fb41d2994771d993debdb786c9697d16da4a0e (patch)
tree55b16a654fc1be7ed4a37d9c3b47e22f2d4da298 /cpp/src/tests/qpid_ping.cpp
parent7e13897c9238d0e5a6a64df64eeddceb14c36002 (diff)
downloadqpid-python-87fb41d2994771d993debdb786c9697d16da4a0e.tar.gz
New API clients failover in a cluster with SSL connections.
- Fix setting of reconnect URLs on messaging::Connection. - Added SSL failover test. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943974 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/qpid_ping.cpp')
-rw-r--r--cpp/src/tests/qpid_ping.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/src/tests/qpid_ping.cpp b/cpp/src/tests/qpid_ping.cpp
index b046fdf54b..95c6914b5c 100644
--- a/cpp/src/tests/qpid_ping.cpp
+++ b/cpp/src/tests/qpid_ping.cpp
@@ -81,8 +81,7 @@ class Ping : public Runnable {
status = SUCCESS;
lock.notifyAll();
} catch (const exception& e) {
- if (!opts.quiet)
- cerr << "Unexpected exception: " << e.what() << endl;
+ cerr << "Unexpected exception: " << e.what() << endl;
Mutex::ScopedLock l(lock);
status = ERROR;
lock.notifyAll();
@@ -112,12 +111,11 @@ int main(int argc, char** argv) {
opts.parse(argc, argv);
Ping ping;
ping.start();
- if (!ping.wait()) exit(1);
+ if (!ping.wait()) return 1;
if (!opts.quiet) cout << "Success!" << endl;
return 0;
} catch (const exception& e) {
- if (!opts.quiet)
- cerr << "Unexpected exception: " << e.what() << endl;
+ cerr << "Unexpected exception: " << e.what() << endl;
return 1;
}
}