You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2014/02/18 17:09:23 UTC
svn commit: r1569400 - /qpid/trunk/qpid/cpp/src/tests/ha_test_max_queues.cpp
Author: aconway
Date: Tue Feb 18 16:09:23 2014
New Revision: 1569400
URL: http://svn.apache.org/r1569400
Log:
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.
Modified:
qpid/trunk/qpid/cpp/src/tests/ha_test_max_queues.cpp
Modified: qpid/trunk/qpid/cpp/src/tests/ha_test_max_queues.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/ha_test_max_queues.cpp?rev=1569400&r1=1569399&r2=1569400&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/ha_test_max_queues.cpp (original)
+++ qpid/trunk/qpid/cpp/src/tests/ha_test_max_queues.cpp Tue Feb 18 16:09:23 2014
@@ -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.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org