diff options
author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-10-06 09:16:31 +0000 |
---|---|---|
committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-10-06 09:16:31 +0000 |
commit | 4c6c7e6474bef34c4bed0d3eb9889012319c938f (patch) | |
tree | 8c92755d5109834b78ea620a224fd2ef75abeb09 /examples/cppunittest/CppUnitTestMain.cpp | |
parent | fbd454f554f13680fe62b36fb7a5829f6dc0c396 (diff) | |
download | cppunit-4c6c7e6474bef34c4bed0d3eb9889012319c938f.tar.gz |
Examples/cppunittest/CppUnitTestMain.
examples/cppunittest/CppUnitTestMain.cpp : application returns
0 is test suite run sucessfuly, 1 otherwise.
* src/cppunit/Exception.cpp : bug fix, operator =() with VC++.
Removed call to std::exception::operator =() which is bugged
on VC++.
* doc/FAQ : added a note explaining why the test
ExceptionTest.testAssignment used to fail.
* NEWS : updated and detailed.
* include/cppunit/TestResult.h :
* src/cppunit/TestResult.cpp : added reset().
* include/cppunit/TextTestRunner.h :
* src/cppunit/TextTestRunner.cpp : Constructor take an optional
TextTestRestult. The TextTestResult remain alive as long as
the runner. Added result() to retreive the result. Printing the
result is now optinal (enabled by default).
Diffstat (limited to 'examples/cppunittest/CppUnitTestMain.cpp')
-rw-r--r-- | examples/cppunittest/CppUnitTestMain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cppunittest/CppUnitTestMain.cpp b/examples/cppunittest/CppUnitTestMain.cpp index baa8b39..4b62612 100644 --- a/examples/cppunittest/CppUnitTestMain.cpp +++ b/examples/cppunittest/CppUnitTestMain.cpp @@ -8,8 +8,8 @@ main( int argc, char* argv[] ) CppUnit::TextTestRunner runner; runner.addTest( CppUnitTest::suite() ); - runner.run(); + bool wasSucessful = runner.run(); - return 0; + return wasSucessful ? 0 : 1; } |