diff options
| author | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-06-01 21:06:33 +0000 |
|---|---|---|
| committer | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-06-01 21:06:33 +0000 |
| commit | e3dfe8c45eec2adc487b938795d4fca3e5983f68 (patch) | |
| tree | d783e0893328d94e350bdd4471438ad54fe01ab7 /examples/cppunittest/TestCallerTest.cpp | |
| parent | 8f08829c7e7119cbea74d91dd8e2b126f14fd34d (diff) | |
| download | cppunit-e3dfe8c45eec2adc487b938795d4fca3e5983f68.tar.gz | |
(suite): fixed 'ISO C++ forbids taking the address of a bound member function to form a pointer to member function' bug reported by g++.
(suite): removed dependency on RTTI.
Diffstat (limited to 'examples/cppunittest/TestCallerTest.cpp')
| -rw-r--r-- | examples/cppunittest/TestCallerTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/cppunittest/TestCallerTest.cpp b/examples/cppunittest/TestCallerTest.cpp index 3568754..9512e02 100644 --- a/examples/cppunittest/TestCallerTest.cpp +++ b/examples/cppunittest/TestCallerTest.cpp @@ -19,11 +19,11 @@ TestCallerTest::~TestCallerTest() CppUnit::TestSuite * TestCallerTest::suite() { - CppUnit::TestSuiteBuilder<TestCallerTest> suite; + CppUnit::TestSuiteBuilder<TestCallerTest> suite("TestCallerTest"); - suite.addTestCaller( "testBasicConstructor", &testBasicConstructor ); - suite.addTestCaller( "testReferenceConstructor", &testReferenceConstructor ); - suite.addTestCaller( "testPointerConstructor", &testPointerConstructor ); + suite.addTestCaller( "testBasicConstructor", &TestCallerTest::testBasicConstructor ); + suite.addTestCaller( "testReferenceConstructor", &TestCallerTest::testReferenceConstructor ); + suite.addTestCaller( "testPointerConstructor", &TestCallerTest::testPointerConstructor ); return suite.takeSuite(); } |
