Date: Wednesday, January 10, 2007 @ 11:45:06
Author: marc
Path: /cvsroot/carob/carob/test
Modified: CarobTestLauncher.cpp (1.40 -> 1.41)
Added workaround for CAROB-76 (failing testprogresslistener). Minor
enhancements.
-----------------------+
CarobTestLauncher.cpp | 29 ++++++++++++++++++-----------
1 files changed, 18 insertions(+), 11 deletions(-)
Index: carob/test/CarobTestLauncher.cpp
diff -u carob/test/CarobTestLauncher.cpp:1.40
carob/test/CarobTestLauncher.cpp:1.41
--- carob/test/CarobTestLauncher.cpp:1.40 Wed Dec 27 16:21:49 2006
+++ carob/test/CarobTestLauncher.cpp Wed Jan 10 11:45:06 2007
@@ -176,7 +176,7 @@
// Log Level:
// available levels are found in log4cxx documentation
// or in file include/Common.hpp
- setLogLevel(LOG_LEVEL_OFF);
+ setLogLevel(LOG_LEVEL_WARN);
#ifdef __MINGW32__
//init windows socket lib
@@ -217,26 +217,33 @@
CppUnit::BriefTestProgressListener listener;
runner.eventManager().addListener( &listener );
+ // workaround for CAROB-76
+ std::cerr << std::endl;
+
string testTablesScript = TEST_TABLES_SCRIPT;
if (argc == 2)
testTablesScript = argv[1];
// Create needed tables for tests
- bool ok = true;
if (needToCreateTestTables())
{
cout<<"Creating test tables..."<<endl;
- ok = createTestTables(testTablesScript);
+ if (!createTestTables(testTablesScript))
+ {
+ cerr<<"Failed to create test tables!"<<endl;
+ return 1;
+ }
}
else
cout<<"No need to create tables, running tests..."<<endl;
- if (ok)
- {
- // to get debug info:
- setLogLevel(LOG_LEVEL_DEBUG);
- // To run only one test:
- // runner.run("TestConnect::testConnectGood");
- runner.run();
- }
+
+ // to get debug info:
+ setLogLevel(LOG_LEVEL_FATAL);
+ // To run only one test:
+ // runner.run("TestConnect::testConnectGood");
+ // To run only one test class:
+ // runner.run("TestConnect");
+ runner.run();
+
//Do *NOT* delete CarobProtector, it is done by the ProtectorChain (in pop())
#ifdef __MINGW32__
WSACleanup();
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits