From 5b34577683ccff057d156b5c2181a540da9f426a Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sun, 14 Jan 2018 23:12:44 +0300 Subject: [PATCH] Relax some tests on Windows (refs #33) --- example/terminate_handler.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/example/terminate_handler.cpp b/example/terminate_handler.cpp index a419326..1331860 100644 --- a/example/terminate_handler.cpp +++ b/example/terminate_handler.cpp @@ -271,6 +271,13 @@ int test_inplace() { boost::filesystem::remove("./backtrace3.dump"); +#ifdef BOOST_WINDOWS + // `ss2` could be empty on some combinations of Windows+MSVC. + if (!ss2) { + return 0; + } +#endif + if (ss1.size() != ss2.size()) { std::cerr << "Stacktraces differ:\n" << ss1 << "\n vs \n" << ss2 << '\n'; return 58;