| 100 | } |
| 101 | |
| 102 | BOOST_NOINLINE BOOST_SYMBOL_VISIBLE void test_rethrow_after_other_exception() { |
| 103 | try { |
| 104 | in_test_rethrow_2("test_rethrow_after_other_exception"); |
| 105 | } catch (const std::exception&) { |
| 106 | auto trace = stacktrace::from_current_exception(); |
| 107 | BOOST_TEST(trace); |
| 108 | std::cout << "Tarce in test_rethrow_after_other_exception(): " << trace << '\n'; |
| 109 | BOOST_TEST(to_string(trace).find("in_test_throw_1") == std::string::npos); |
| 110 | BOOST_TEST(to_string(trace).find("in_test_throw_2") != std::string::npos); |
| 111 | BOOST_TEST(to_string(trace).find("in_test_rethrow_2") != std::string::npos); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | BOOST_NOINLINE BOOST_SYMBOL_VISIBLE void test_nested() { |
| 116 | try { |
no test coverage detected