Skip to content

Commit 5664c75

Browse files
committed
Relax tests on MSVC
1 parent cc3c37a commit 5664c75

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

example/terminate_handler.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,14 @@ int test_inplace() {
240240
return 53;
241241
}
242242

243+
#if !defined(BOOST_MSVC) && !defined(BOOST_STACKTRACE_USE_WINDBG)
244+
// This is very dependent on compiler and link flags. No sane way to make it work, because
245+
// BOOST_NOINLINE could be ignored by MSVC compiler if link-time optimization is enabled.
243246
if (ss1 && ss1[0].name() != ss2[0].name()) {
244247
std::cerr << "Stacktraces differ:\n" << ss1 << "\n vs \n" << ss2 << '\n';
245248
return 54;
246249
}
250+
#endif
247251
}
248252

249253
{

0 commit comments

Comments
 (0)