// Normal test runner
CppUnit::TextUi::TestRunner runner;
// disable exceptions
runner.eventManager().popProtector();
Friday, February 5, 2010
CppUnit disable exception handing
By default C++ unit catches exceptions, this can make debugging a lot harder (as it often doesn't give you much information about the exception that was thrown or which line number it was thrown on). To disable the exception catching you need to remove the default protector:
Subscribe to:
Post Comments (Atom)
1 comment:
Post a Comment