catchorg / catchorg/Catch2

XML Reporter doesn't output stderr / stdin when there is a segfault

Open
#2,819 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

**Describe the bug**
No output when segfault during test

**Expected behavior**
Output

**Reproduction steps**
```cpp
TEST_CASE("test") {
std::cout << "Cout!" << std::endl;
std::cerr << "Cerr!" << std::endl;
// Generate a segfault
int *a = nullptr;
*a = 1;

}
```

**Platform information:**

- OS: **Linux**
- Compiler+version: **GCC v13.2**
- Catch version: **v3.4.0**

**Additional context**
Similar to #1514

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.