I have a project with several tests. When i build it in Release mode (under MSVC 7.1) as a test plugin, some of the tests fail. However, when i build it as an executable (again, in release mode), and run the tests with a TestRunner, they all pass.
The tests that fail, fail with "uncaught exception of unknown type", some of them fail in the setUp() method.
I have no problem with Debug mode, only Release mode. Does anyone have an idea what could be the problem?
I'm using cppunit-1.10.2 and msvc7.1.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I remember once upon a time encountering a problem with CppUnit and exception slicing, but I don't remember the exact operation that caused it. However, that might be what's going on for you, that an exception is getting created, then sliced into a base type, then the behavior you're noticing?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a project with several tests. When i build it in Release mode (under MSVC 7.1) as a test plugin, some of the tests fail. However, when i build it as an executable (again, in release mode), and run the tests with a TestRunner, they all pass.
The tests that fail, fail with "uncaught exception of unknown type", some of them fail in the setUp() method.
I have no problem with Debug mode, only Release mode. Does anyone have an idea what could be the problem?
I'm using cppunit-1.10.2 and msvc7.1.
I remember once upon a time encountering a problem with CppUnit and exception slicing, but I don't remember the exact operation that caused it. However, that might be what's going on for you, that an exception is getting created, then sliced into a base type, then the behavior you're noticing?