When I execute a unit test that throws a user defined exception (that doesn't inherit from std::exception), I get a Bus Error (core dump) message and my test execution stops. I am on Solaris 5.9 with GCC 3.3.3.
Does anyone know what is happening?
Thanks,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Maybe CppUnit does not catch it (as it does not derive from the std::except) and so it crashes in this way.
Have you tried to wrap the call to test unit in a try/catch block ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
When I execute a unit test that throws a user defined exception (that doesn't inherit from std::exception), I get a Bus Error (core dump) message and my test execution stops. I am on Solaris 5.9 with GCC 3.3.3.
Does anyone know what is happening?
Thanks,
BTW .. I am using CPPUNIT 1.12.0.
Maybe CppUnit does not catch it (as it does not derive from the std::except) and so it crashes in this way.
Have you tried to wrap the call to test unit in a try/catch block ?