Skip to content

Commit

Permalink
spoofed_criterion: do not always exit after first test
Browse files Browse the repository at this point in the history
  • Loading branch information
fw-immunant committed Jul 24, 2024
1 parent 2047b9a commit 50d4fdf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions misc/spoofed_criterion/test_runner.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ int main() {
return 2;
}
int exit_status = WEXITSTATUS(stat);
if (exit_status == test_info->exit_code) {
return 0;
} else {
if (exit_status != test_info->exit_code) {
fprintf(stderr, "forked test child exited with status %d, but %d was expected\n", exit_status, test_info->exit_code);
return 1;
}
}
return 0;
}

0 comments on commit 50d4fdf

Please sign in to comment.