Don't use stacktrace on Windows.
continuous-integration/drone/push Build is failing

This commit is contained in:
Deukhoofd committed 2020-08-15 14:19:36 +02:00
1 parent 002902eed9
commit e778b61839
3 files changed
+11 -8

No files matched your search

+3 -6
View File
@@ -6,14 +6,11 @@ using namespace ArbUt;
TEST_CASE("Throw exception get stack trace") {
try {
throw ArbUt::Exception("foobar");
}
catch (const ArbUt::Exception& e) {
} 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");
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");
REQUIRE(e.GetStacktrace(1, false) == "ArbutilsTests Catch::RunContext::runTest(Catch::TestCase const&)\n");
#endif
}
}