From 5664c752cb69fc7c2e02e3161e72484ca11621f8 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sat, 18 Mar 2017 13:38:15 +0300 Subject: [PATCH] Relax tests on MSVC --- example/terminate_handler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/terminate_handler.cpp b/example/terminate_handler.cpp index 3854ca3..5c9dcf9 100644 --- a/example/terminate_handler.cpp +++ b/example/terminate_handler.cpp @@ -240,10 +240,14 @@ int test_inplace() { return 53; } +#if !defined(BOOST_MSVC) && !defined(BOOST_STACKTRACE_USE_WINDBG) + // This is very dependent on compiler and link flags. No sane way to make it work, because + // BOOST_NOINLINE could be ignored by MSVC compiler if link-time optimization is enabled. if (ss1 && ss1[0].name() != ss2[0].name()) { std::cerr << "Stacktraces differ:\n" << ss1 << "\n vs \n" << ss2 << '\n'; return 54; } +#endif } {