diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-09-29 16:53:48 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-09-29 16:53:48 +0000 |
| commit | bef9647de57c10e9b3c2779e9eff21aebb05c3ec (patch) | |
| tree | 84f1d8c4323b83ad1773bc86b0e6be4e2eb7dee7 /examples/cppunittest/TestCallerTest.h | |
| parent | 53929c98380419c90d224ef610ff273f4e6abb3c (diff) | |
| download | cppunit-bef9647de57c10e9b3c2779e9eff21aebb05c3ec.tar.gz | |
Example/cppunittest/TestCaller.
example/cppunittest/TestCaller.*: remove some memory leaks.
TestCaller exception catching features is now tested correctly.
Previous test tested nothing!
Diffstat (limited to 'examples/cppunittest/TestCallerTest.h')
| -rw-r--r-- | examples/cppunittest/TestCallerTest.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/cppunittest/TestCallerTest.h b/examples/cppunittest/TestCallerTest.h index e317716..bb6e7b7 100644 --- a/examples/cppunittest/TestCallerTest.h +++ b/examples/cppunittest/TestCallerTest.h @@ -2,6 +2,7 @@ #define TESTCALLERTEST_H #include <cppunit/TestCase.h> +#include <cppunit/TestResult.h> #include <cppunit/TestSuite.h> #include "TrackedTestCase.h" @@ -24,6 +25,7 @@ public: void testExpectFailureException(); void testExpectException(); + void testExpectedExceptionNotCaught(); private: class ExceptionThrower : public CppUnit::TestCase @@ -31,6 +33,7 @@ private: public: void testThrowFailureException(); void testThrowException(); + void testThrowNothing(); }; virtual void onConstructor(); @@ -53,6 +56,7 @@ private: int m_tearDownCount; int m_testCount; const std::string m_testName; + CppUnit::TestResult *m_result; }; |
