runner: give helpers a chance to clean up after the test.

Fixes #50.
This commit is contained in:
Ben Noordhuis 2011-07-20 21:11:52 +02:00
parent 6c8acb0ed1
commit eb5e00fd1b

View File

@ -165,8 +165,12 @@ int run_test(const char* test, int timeout, int benchmark_output) {
sizeof errmsg,
"exit code %d",
status);
goto out;
}
/* Give the helpers time to clean up their act. */
uv_sleep(1000);
out:
/* Reap running processes except the main process, it's already dead. */
for (i = 0; i < process_count - 1; i++) {