diff options
| author | Altan Birler | 2024-04-15 13:25:08 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2024-04-21 21:52:33 +0200 |
| commit | 42fe78d0ba0eb33096a705e8f9c4814fd619eebd (patch) | |
| tree | b821fcd577522a7d9da67e17b5f31725cef7f0c4 /src/catch2/catch_test_spec.cpp | |
| parent | 2bce3e276b5f859ac45c43f011ffed98d0325115 (diff) | |
| download | catch3-42fe78d0ba0eb33096a705e8f9c4814fd619eebd.tar.gz | |
Handle active Sections for fatal errors
Closes #1210
When a signal is caught, the destructors of Sections will not be called.
Thus, we must call `sectionEndedEarly` manually for those Sections.
Example test case:
```
TEST_CASE("broken") {
SECTION("section") {
/// Use illegal cpu instruction
__asm__ __volatile__("ud2" : : : "memory");
}
}
```
Diffstat (limited to 'src/catch2/catch_test_spec.cpp')
0 files changed, 0 insertions, 0 deletions