From 094052a328dd4d20b3ca1dd61afc679cb1b9e454 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 18 Feb 2014 16:09:23 +0000 Subject: 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 --- qpid/cpp/src/tests/ha_test_max_queues.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/src') 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. -- cgit v1.2.1