summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2014-02-18 16:09:23 +0000
committerAlan Conway <aconway@apache.org>2014-02-18 16:09:23 +0000
commit094052a328dd4d20b3ca1dd61afc679cb1b9e454 (patch)
tree8ac74cb2a49bea6350a9c9aa295bccffdd50d2a3 /qpid/cpp/src/tests
parenta255b0dc43174973ea5376227ab8f2332228eb8e (diff)
downloadqpid-python-094052a328dd4d20b3ca1dd61afc679cb1b9e454.tar.gz
NO-JIRA: Fix build error in ha_test_max_queues for release builds.
argc was only being tested in an assert which was compiled out for release builds. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1569400 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
-rw-r--r--qpid/cpp/src/tests/ha_test_max_queues.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/ha_test_max_queues.cpp b/qpid/cpp/src/tests/ha_test_max_queues.cpp
index fda271f854..fcce4c3151 100644
--- a/qpid/cpp/src/tests/ha_test_max_queues.cpp
+++ b/qpid/cpp/src/tests/ha_test_max_queues.cpp
@@ -30,7 +30,10 @@ using namespace qpid::client;
using namespace std;
int main(int argc, char** argv) {
- assert(argc == 2); // Expecing URL of broker as argv[1]
+ if (argc != 2) {
+ cerr << "Expecing URL of broker as argument" << endl;
+ exit(1);
+ }
try {
// We need to create a large number of queues quickly, so we
// use the old API for it's asynchronous commands.