From 87fb41d2994771d993debdb786c9697d16da4a0e Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 13 May 2010 18:54:50 +0000 Subject: 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 --- cpp/src/tests/qpid_ping.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cpp/src/tests/qpid_ping.cpp') 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; } } -- cgit v1.2.1