Open jbbjarnason opened 5 months ago
Custom message for fatal expressions
No message shown before the exception is thrown
#include <https://raw.githubusercontent.com/boost-experimental/ut/master/include/boost/ut.hpp>
int main() { using namespace boost::ut; expect(fatal(2 != 2_i)) << "some random message"; }
```bash ASM generation compiler returned: 0 Execution build compiler returned: 0 Program returned: 139 =============================================================================== Suite globaltests: 0 | 2 failed asserts: 0 | 0 passed | 2 failed terminate called after throwing an instance of 'boost::ext::ut::v2_0_1::events::fatal_assertion' Program terminated with signal: SIGSEGV FAILED in: :0 - test condition: [2 != 2]
I observe the same thing. And it is very annoying. Will need to switch to a slower, but more robust testing framework.
Expected Behavior
Custom message for fatal expressions
Actual Behavior
No message shown before the exception is thrown
Steps to Reproduce the Problem
int main() { using namespace boost::ut; expect(fatal(2 != 2_i)) << "some random message"; }
Specifications