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 /src/cppunit/Exception.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 'src/cppunit/Exception.cpp')
| -rw-r--r-- | src/cppunit/Exception.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cppunit/Exception.cpp b/src/cppunit/Exception.cpp index 3a4efd0..80b005a 100644 --- a/src/cppunit/Exception.cpp +++ b/src/cppunit/Exception.cpp @@ -61,7 +61,10 @@ Exception::~Exception () throw() Exception& Exception::operator =( const Exception& other ) { - SuperClass::operator =(other); +// Don't call superclass operator =(). VC++ STL implementation +// has a bug. It calls the destructor and copy constructor of +// std::exception() which reset the virtual table to std::exception. +// SuperClass::operator =(other); if ( &other != this ) { |
