summaryrefslogtreecommitdiff
path: root/include/cppunit/extensions
diff options
context:
space:
mode:
authorBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-05-06 19:04:02 +0000
committerBastiaan Bakker <bastiaan.bakker@lifeline.nl>2001-05-06 19:04:02 +0000
commit90296fa9c8fdedb9104faba5a8bac62210a9a80d (patch)
treeb455e31a182bd41b9d28b55c6ef6cffc429423ef /include/cppunit/extensions
parent58bffb0f4dafa3f2457ef65cec4546fbf6ff3428 (diff)
downloadcppunit-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.h7
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: