[feature] Selective Signal Handling per Test case
- Dominant language
- C++
- Stars
- 21.5k
- Forks
- 3.5k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 2
Description
I am trying to test an embedded Python interpreter that eventually uses signals internally. One of the test cases uses the python multiprocessing module to spawn subprocesses. Internally python uses signals to control subprocess termination, this signal being SIGTERM.
I get false test failures when the catch installed signal handler sees the SIGTERM from the python subprocess termination request.
If I disable signal handling in catch, all my other tests miss other signals when all I really wanted was to ignore SIGTERM for this one single test case, and proceed with the default signal handling for the other test cases.
Is this possible? I don't believe so, it appears to be project wide (CATCH_CONFIG_POSIX_SIGNALS). Or do you support changing this define between test_case definitions? Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.