~ubuntu-branches/ubuntu/wily/psi/wily-proposed

« back to all changes in this revision

Viewing changes to third-party/cppunit/cppunit/src/cppunit/RepeatedTest.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2009-09-25 17:49:51 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090925174951-lvm7kdap82o8xhn3
Tags: 0.13-1
* Updated to upstream version 0.13
* Set Standards-Version to 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <cppunit/extensions/RepeatedTest.h>
2
 
#include <cppunit/TestResult.h>
3
 
 
4
 
CPPUNIT_NS_BEGIN
5
 
 
6
 
 
7
 
// Counts the number of test cases that will be run by this test.
8
 
int
9
 
RepeatedTest::countTestCases() const
10
 
11
 
  return TestDecorator::countTestCases() * m_timesRepeat; 
12
 
}
13
 
 
14
 
 
15
 
// Runs a repeated test
16
 
void 
17
 
RepeatedTest::run( TestResult *result )
18
 
{
19
 
  for ( int n = 0; n < m_timesRepeat; n++ ) 
20
 
  {
21
 
    if ( result->shouldStop() )
22
 
        break;
23
 
 
24
 
    TestDecorator::run( result );
25
 
  }
26
 
}
27
 
 
28
 
 
29
 
CPPUNIT_NS_END