Added cppunit to the ./contrib dir. Build config for x64 and dll builds (some bugs remaining, but most configs are working)
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@70 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
29
contrib/cppunit-1.12.1/src/cppunit/RepeatedTest.cpp
Normal file
29
contrib/cppunit-1.12.1/src/cppunit/RepeatedTest.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <cppunit/extensions/RepeatedTest.h>
|
||||
#include <cppunit/TestResult.h>
|
||||
|
||||
CPPUNIT_NS_BEGIN
|
||||
|
||||
|
||||
// Counts the number of test cases that will be run by this test.
|
||||
int
|
||||
RepeatedTest::countTestCases() const
|
||||
{
|
||||
return TestDecorator::countTestCases() * m_timesRepeat;
|
||||
}
|
||||
|
||||
|
||||
// Runs a repeated test
|
||||
void
|
||||
RepeatedTest::run( TestResult *result )
|
||||
{
|
||||
for ( int n = 0; n < m_timesRepeat; n++ )
|
||||
{
|
||||
if ( result->shouldStop() )
|
||||
break;
|
||||
|
||||
TestDecorator::run( result );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
CPPUNIT_NS_END
|
||||
Reference in New Issue
Block a user