fix abandons looking like crashes in no-fork mode

This commit is contained in:
agroce
2019-04-25 09:23:39 -07:00
parent daa082a9fb
commit 671457cb11
+1 -1
View File
@@ -625,7 +625,7 @@ DeepState_ForkAndRunTest(struct DeepState_TestInfo *test) {
}
/* If we exited normally, the status code tells us if the test passed. */
if (WIFEXITED(wstatus)) {
if (!FLAGS_fork || WIFEXITED(wstatus)) {
uint8_t status = WEXITSTATUS(wstatus);
return (enum DeepState_TestRunResult) status;
}