mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-17 07:48:50 +01:00
improved fail reported
This commit is contained in:
parent
a975b7f08a
commit
54018ef676
1 changed files with 3 additions and 5 deletions
|
@ -71,18 +71,16 @@ void TestCase::run (TestResult *result)
|
|||
|
||||
}
|
||||
catch (const CppUnitException& e) {
|
||||
CppUnitException *copy = new CppUnitException (e);
|
||||
CppUnitException *copy = new CppUnitException(e);
|
||||
result->addFailure (this, copy);
|
||||
|
||||
}
|
||||
catch (const std::exception& e) {
|
||||
result->addError (this, new CppUnitException (e.what ()));
|
||||
result->addError (this, new CppUnitException(m_name + ":" + e.what()));
|
||||
|
||||
}
|
||||
catch (...) {
|
||||
CppUnitException *e = new CppUnitException ("unknown exception");
|
||||
result->addError (this, e);
|
||||
|
||||
result->addError (this, new CppUnitException (m_name + ": unknown exception"));
|
||||
}
|
||||
|
||||
tearDown ();
|
||||
|
|
Loading…
Reference in a new issue