From 34fdd6077e98a08904348a981fae9b0d0077ae8d Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Thu, 26 Jan 2017 23:49:53 +0300 Subject: [PATCH] Attempt to fix test on WIN platform (2) --- example/terminate_handler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/terminate_handler.cpp b/example/terminate_handler.cpp index 5704d75..b6a5a0f 100644 --- a/example/terminate_handler.cpp +++ b/example/terminate_handler.cpp @@ -61,6 +61,9 @@ int main(int argc, const char* argv[]) { boost::filesystem::copy_file(argv[0], command_1, boost::filesystem::copy_option::overwrite_if_exists); command_1 += " 1"; std::system(command_1.string().c_str()); + if (ret) { + std::exit(ret); + } } { @@ -108,6 +111,7 @@ int main(int argc, const char* argv[]) { } /*->*/ // cleaning up + ifs.close(); boost::filesystem::remove("./backtrace.dump"); } //]