示例#1
0
int TestManager :: Run( const std::string & name ) {
	TestSuite * s = FindSuite( name );
	if ( s == 0 ) {
		std::cerr << "==== No such test suite: " << name << " ====" << std::endl;
		return -1;
	}
	else {
		s->RunTests();
		return s->Fails();
	}
}