You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
434 B
18 lines
434 B
15 years ago
|
#include <cppunit/extensions/TestFactoryRegistry.h>
|
||
|
#include <cppunit/ui/text/TestRunner.h>
|
||
|
|
||
|
int main( int argc, char **argv)
|
||
|
{
|
||
|
CppUnit::TestFactoryRegistry ®istry =
|
||
|
CppUnit::TestFactoryRegistry::getRegistry();
|
||
|
|
||
|
CppUnit::TextUi::TestRunner runner;
|
||
|
runner.addTest( registry.makeTest() );
|
||
|
|
||
|
// Run the tests.
|
||
|
bool wasSucessful = runner.run();
|
||
|
|
||
|
// Return error code 1 if the one of test failed.
|
||
|
return wasSucessful ? 0 : 1;
|
||
|
}
|