diff options
| author | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-05-06 19:04:02 +0000 |
|---|---|---|
| committer | Bastiaan Bakker <bastiaan.bakker@lifeline.nl> | 2001-05-06 19:04:02 +0000 |
| commit | 90296fa9c8fdedb9104faba5a8bac62210a9a80d (patch) | |
| tree | b455e31a182bd41b9d28b55c6ef6cffc429423ef /include/cppunit/extensions | |
| parent | 58bffb0f4dafa3f2457ef65cec4546fbf6ff3428 (diff) | |
| download | cppunit-90296fa9c8fdedb9104faba5a8bac62210a9a80d.tar.gz | |
Added constructors to TestCaller which accept an already constucted Fixture.
Diffstat (limited to 'include/cppunit/extensions')
| -rw-r--r-- | include/cppunit/extensions/TestSuiteBuilder.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/cppunit/extensions/TestSuiteBuilder.h b/include/cppunit/extensions/TestSuiteBuilder.h index d85683d..ab553e9 100644 --- a/include/cppunit/extensions/TestSuiteBuilder.h +++ b/include/cppunit/extensions/TestSuiteBuilder.h @@ -38,9 +38,10 @@ namespace CppUnit { void addTestCaller( std::string name, TestMethod testMethod ) { - Test *test = makeTestCaller( m_suite->getName() + "." + name, - testMethod ); - addTest( test ); + Test *test = + new TestCaller<Fixture>( m_suite->getName() + "." + name, + testMethod ); + addTest( test ); } private: |
