[Cppunit-devel] Partial answer: 2.3) Why does the test ExceptionTest.testAssignment failed in CppUni
Brought to you by:
blep
From: Phil T. <phi...@ts...> - 2001-10-04 12:57:22
|
The implementation of the assignment operator for std::exception in MSVCRT seems to be cause of the problem. Comment out the SuperClass::operator= (other) call in Exception::operator=(Exception&) and the test now passes. Examination of MSVCRT disassembly yields some odd-looking (shortcut?) behavior. It looks as though exception::operator=(exception&) resets itself by calling its own destructor (memory is not freed) then calls exception(exception&) to complete the assignment. I can't progress the problem any further at this time but the information above may be of some assistance. Regards, Phil |