activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r709837 - /activemq/activemq-cpp/trunk/src/test/main.cpp
Date Sun, 02 Nov 2008 03:36:06 GMT
Author: tabish
Date: Sat Nov  1 20:36:06 2008
New Revision: 709837

URL: http://svn.apache.org/viewvc?rev=709837&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-200

Modified:
    activemq/activemq-cpp/trunk/src/test/main.cpp

Modified: activemq/activemq-cpp/trunk/src/test/main.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test/main.cpp?rev=709837&r1=709836&r2=709837&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/test/main.cpp (original)
+++ activemq/activemq-cpp/trunk/src/test/main.cpp Sat Nov  1 20:36:06 2008
@@ -21,21 +21,26 @@
 #include <cppunit/TestResult.h>
 #include <activemq/util/Config.h>
 #include <decaf/lang/Runtime.h>
+#include <iostream>
 
 int main( int argc AMQCPP_UNUSED, char **argv AMQCPP_UNUSED)
 {
     // ensure that we start the runtime.
     decaf::lang::Runtime::getRuntime();
+    bool wasSuccessful = false;
 
-    CppUnit::TextUi::TestRunner runner;
-    CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
-    runner.addTest( registry.makeTest() );
-
-    // Shows a message as each test starts
-    CppUnit::BriefTestProgressListener listener;
-    runner.eventManager().addListener( &listener );
+    for( int i = 0; i < 1; ++i ) {
+        CppUnit::TextUi::TestRunner runner;
+        CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
+        runner.addTest( registry.makeTest() );
+
+        // Shows a message as each test starts
+        CppUnit::BriefTestProgressListener listener;
+        runner.eventManager().addListener( &listener );
+
+        wasSuccessful = runner.run( "", false );
+    }
 
-    bool wasSuccessful = runner.run( "", false );
     return !wasSuccessful;
 }
 



Mime
View raw message