Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Test runner: avoid process_wait failure when the test process didn't …
Browse files Browse the repository at this point in the history
…start
  • Loading branch information
piscisaureus committed Mar 8, 2012
1 parent f43f1a7 commit 743cab9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/runner.c
Expand Up @@ -186,7 +186,8 @@ int run_test(const char* test, int timeout, int benchmark_output) {
process_terminate(&processes[i]);
}

if (process_wait(processes, process_count - 1, -1) < 0) {
if (process_count > 0 &&
process_wait(processes, process_count - 1, -1) < 0) {
FATAL("process_wait failed");
}

Expand Down

0 comments on commit 743cab9

Please sign in to comment.