summaryrefslogtreecommitdiff
path: root/examples/cppunittest/TestCallerTest.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2001-09-17 20:27:15 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2001-09-17 20:27:15 +0000
commitefc2b83ddd11864964936d1235327c5813cfed1e (patch)
tree1bfc5eed4a2c98f94df4389e2028cf48f7cc88de /examples/cppunittest/TestCallerTest.cpp
parent4d8f4e24048feecd5d630bff4e6c6c1883ac2402 (diff)
downloadcppunit-efc2b83ddd11864964936d1235327c5813cfed1e.tar.gz
Makefile.
Makefile.am: Added INSTALL-WIN32.txt to EXTRA_DIST. * INSTALL-WIN32.txt: added, short documentation for CppUnit and VC++. * include/cppunit/extensions/HelperMacros.h: bug #448363, removed an extraneous ';' at the end of CPPUNIT_TEST_SUITE_END macro. * examples/cppunittest/TestCallerTest.cpp: bug #448332, fixed memory leaks. * src/msvc6/testrunner/TestRunnerDlg.h: * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.h: * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.cpp: change to define IDD to a dummy value when subclassing the dialog. * src/cppunit/cppunit.dsp: * src/msvc6/testrunner/TestRunner.dsp: * src/msvc6/testpluginrunner/TestPlugInRunner.dsp: * examples/cppunitttest/CppUnitTestMain.dsp: * examples/hierarchy.dsp: * examples/msvc6/TestPlugIn/TestPlugIn.dsp: * examples/msvc6/HostApp/HostApp.dsp: all configurations can be compiled. * src/msvc6/testpluginrunner/TestPlugInRunner.dsw: added dependency to cppunit.dsp and TestRunner.dsp.
Diffstat (limited to 'examples/cppunittest/TestCallerTest.cpp')
-rw-r--r--examples/cppunittest/TestCallerTest.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/cppunittest/TestCallerTest.cpp b/examples/cppunittest/TestCallerTest.cpp
index 9aafd8f..cef9a5b 100644
--- a/examples/cppunittest/TestCallerTest.cpp
+++ b/examples/cppunittest/TestCallerTest.cpp
@@ -2,6 +2,8 @@
#include "FailureException.h"
#include <cppunit/extensions/TestSuiteBuilder.h>
#include <cppunit/extensions/HelperMacros.h>
+#include <cppunit/TestResult.h>
+
CPPUNIT_TEST_SUITE_REGISTRATION( TestCallerTest );
@@ -110,7 +112,7 @@ TestCallerTest::testBasicConstructor()
checkTestName( caller.getName() );
checkNothingButConstructorCalled();
- caller.run();
+ delete caller.run();
checkRunningSequenceCalled();
} // Force destruction of the test caller.
@@ -129,7 +131,7 @@ TestCallerTest::testReferenceConstructor()
checkTestName( caller.getName() );
checkNothingButConstructorCalled();
- caller.run();
+ delete caller.run();
checkRunningSequenceCalled();
} // Force destruction of the test caller.
@@ -148,7 +150,7 @@ TestCallerTest::testPointerConstructor()
checkTestName( caller.getName() );
checkNothingButConstructorCalled();
- caller.run();
+ delete caller.run();
checkRunningSequenceCalled();
} // Force destruction of the test caller.