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 ®istry = 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 ®istry = 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; + } }