I'm trying to use CppUnit on a project that has numerous assertions (of the kind defined in the standard C++ header cassert). I cannot build without these assertions, since they are extremely useful during CppUnit test case construction (it's a large projects and easy to make mistakes during test case set up).
The problem is that CppUnit throws away the info from failed assertions. It only says that an unknown exception occurred. Can I turn off CppUnit's handling of cassert assertions, or at least get it to show the information in the assertion failure?
I'm using g++ 4.4.3 under Linux, if that matters.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to use CppUnit on a project that has numerous assertions (of the kind defined in the standard C++ header cassert). I cannot build without these assertions, since they are extremely useful during CppUnit test case construction (it's a large projects and easy to make mistakes during test case set up).
The problem is that CppUnit throws away the info from failed assertions. It only says that an unknown exception occurred. Can I turn off CppUnit's handling of cassert assertions, or at least get it to show the information in the assertion failure?
I'm using g++ 4.4.3 under Linux, if that matters.