Beispiel #1
0
//@+node:gcross.20090418183921.17: ** Suites
//@+node:gcross.20090418183921.18: *3* class SuiteBase
void SuiteBase::run(Runner& log)
{
    log.enter(*this);
    vector<TestBase*> tests_to_run;
    for (TestBase* p = tests(); p != 0; p = p->nextPointer()) {
        tests_to_run.push_back(p);
    }
    for (vector<TestBase*>::reverse_iterator pp = tests_to_run.rbegin(); pp != tests_to_run.rend(); ++pp) {
        (*pp)->run(log);
    }
    log.exit(*this);
}