Better handling for Exception stack trace testing.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -8,8 +8,13 @@ TEST_CASE("Throw exception, get stack trace") {
|
||||
throw ArbUt::Exception("foobar");
|
||||
}
|
||||
catch (const ArbUt::Exception& e) {
|
||||
#ifndef NDEBUG
|
||||
REQUIRE(e.GetStacktrace(1) ==
|
||||
"ExceptionTests.cpp[8] ____C_A_T_C_H____T_E_S_T____0()\n");
|
||||
#else
|
||||
REQUIRE(e.GetStacktrace(1, false) ==
|
||||
"ArbutilsTests Catch::RunContext::runTest(Catch::TestCase const&)\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user