-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Fully Compatible
-
ALL
-
v4.0
The C++ death test implementation on posix systems uses fork to produce a child process in which to run the test that is expected to terminate the process. The current implementation constructs the test fixture and then forks the process. However, this behavior is incorrect, because the test fixture constructor may create threads. The fixture should be constructed in the child process after the call to fork().