Date: Friday, November 25, 2005 @ 16:22:34
Author: marc
Path: /cvsroot/carob/carob/test
Modified: CarobTestLauncher.cpp (1.5 -> 1.6)
Enabled CarobProtector (catches CarobExceptions)
-----------------------+
CarobTestLauncher.cpp | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: carob/test/CarobTestLauncher.cpp
diff -u carob/test/CarobTestLauncher.cpp:1.5
carob/test/CarobTestLauncher.cpp:1.6
--- carob/test/CarobTestLauncher.cpp:1.5 Wed Nov 23 16:46:25 2005
+++ carob/test/CarobTestLauncher.cpp Fri Nov 25 16:22:34 2005
@@ -23,8 +23,13 @@
// For QT ui, replace the above line by this:
//#include <cppunit/ui/qt/TestRunner.h>
//#include <qt3/qapplication.h>
+
+#include <cppunit/TestResult.h>
+
#include "CarobException.hpp"
#include "Common.hpp"
+#include "CarobProtector.hpp"
+
#include "TestBeginCommitRollback.hpp"
#include "TestConnect.hpp"
#include "TestExecReadRequest.hpp"
@@ -45,6 +50,11 @@
runner.addTest(TestExecReadRequest::suite());
runner.addTest(TestBeginCommitRollback::suite());
runner.addTest(TestStatement::suite());
+
+ // add our own protector
+ CarobProtector *cprot = new CarobProtector();
+ runner.eventManager().pushProtector(cprot);
+
runner.run();
return 0;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits