Date: Tuesday, December 6, 2005 @ 17:52:59
Author: gilles
Path: /cvsroot/carob/carob/test
Modified: CarobTestLauncher.cpp (1.8 -> 1.9)
Added comment on protector non-deletion
-----------------------+
CarobTestLauncher.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: carob/test/CarobTestLauncher.cpp
diff -u carob/test/CarobTestLauncher.cpp:1.8
carob/test/CarobTestLauncher.cpp:1.9
--- carob/test/CarobTestLauncher.cpp:1.8 Fri Dec 2 15:53:07 2005
+++ carob/test/CarobTestLauncher.cpp Tue Dec 6 17:52:59 2005
@@ -52,12 +52,13 @@
runner.addTest(TestExecReadRequest::suite());
runner.addTest(TestBeginCommitRollback::suite());
runner.addTest(TestStatement::suite());
-
+
// add our own protector
- CarobProtector *cprot = new CarobProtector();
+ CarobProtector* cprot = new CarobProtector();
runner.eventManager().pushProtector(cprot);
runner.run();
+ //Do *NOT* delete CarobProtector, it is done by the ProtectorChain (in pop())
return 0;
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits