activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r489967 - /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/main.cpp
Date Sun, 24 Dec 2006 02:35:36 GMT
Author: tabish
Date: Sat Dec 23 18:35:35 2006
New Revision: 489967

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

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

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/main.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/main.cpp?view=diff&rev=489967&r1=489966&r2=489967
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/main.cpp (original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/test-integration/main.cpp Sat Dec
23 18:35:35 2006
@@ -19,18 +19,28 @@
 #include <cppunit/ui/text/TestRunner.h>
 #include <cppunit/BriefTestProgressListener.h>
 #include <cppunit/TestResult.h>
+#include <iostream>
 
 int main( int argc, char **argv)
 {
-    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 );
+    try
+    {
+        CppUnit::TextUi::TestRunner runner;
+        CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
+        runner.addTest( registry.makeTest() );
     
-    bool wasSuccessful = runner.run( "", false );
-    return !wasSuccessful;
+        // Shows a message as each test starts
+        CppUnit::BriefTestProgressListener listener;
+        runner.eventManager().addListener( &listener );
+        
+        bool wasSuccessful = runner.run( "", false );
+        return !wasSuccessful;
+    }
+    catch(...) {
+        std::cout << "----------------------------------------" << std::endl;
+        std::cout << "- AN ERROR HAS OCCURED:                -" << std::endl;
+        std::cout << "- Do yuo have a Broker Running?        -" << std::endl;
+        std::cout << "----------------------------------------" << std::endl;
       
+    }
 }
 



Mime
View raw message