Check normally forks to create a separate address space. This allows a signal or early exit to be caught and reported, rather than taking down the entire test program, and is normally very useful. However, when you are trying to debug why the segmentation fault or other program error occurred, forking makes it difficult to use debugging tools. To define fork mode for an SRunner object, you can do one of the following:
Define the CK_FORK environment variable to equal “no”.
Explicitly define the fork status through the use of the following function:
void srunner_set_fork_status(SRunner *sr, enum fork_status fstat);
The enum fork_status defines the following values: CK_FORK and CK_NOFORK.
The explicit definition overrides the environment variable.