| 60 | } |
| 61 | |
| 62 | BOOST_NOINLINE BOOST_SYMBOL_VISIBLE void test_trace_from_exception() { |
| 63 | // const test_no_pending_on_finish guard{}; // something strange |
| 64 | try { |
| 65 | in_test_throw_1("testing basic"); |
| 66 | } catch (const std::exception&) { |
| 67 | auto trace = stacktrace::from_current_exception(); |
| 68 | BOOST_TEST(trace); |
| 69 | std::cout << "Tarce in test_trace_from_exception(): " << trace << '\n'; |
| 70 | BOOST_TEST(to_string(trace).find("in_test_throw_1") != std::string::npos); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | BOOST_NOINLINE BOOST_SYMBOL_VISIBLE void test_after_other_exception() { |
| 75 | try { |
no test coverage detected