When trying the unit tests for cppunit itself one test fails in my installation (v 1.6.2, VC++ 6.0, Win2000):
ExceptionTest::testAssignment()
It seems that Exception::operator=() changes the virtual function table to the base class (std::exception) and so calling what() on other returns "Unknown Exception".
What is going wrong?
thank you,
Wolfgang
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When trying the unit tests for cppunit itself one test fails in my installation (v 1.6.2, VC++ 6.0, Win2000):
ExceptionTest::testAssignment()
It seems that Exception::operator=() changes the virtual function table to the base class (std::exception) and so calling what() on other returns "Unknown Exception".
What is going wrong?
thank you,
Wolfgang
btw: I just found out that commenting out the call to the base class resolves the problem for me. But still: what is going on?
thank you,
Wolfgang
--------------
Exception::operator=( const Exception& other )
{
// SuperClass::operator= (other);
...
this code works!
You can check the old post:
CPPUnitTestApp Win32 (v1.6.2)