From eb5e00fd1be5e5efafcb03f080205a827e95ba26 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 20 Jul 2011 21:11:52 +0200 Subject: [PATCH] runner: give helpers a chance to clean up after the test. Fixes #50. --- test/runner.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/runner.c b/test/runner.c index f7bea09c..9fbc141e 100644 --- a/test/runner.c +++ b/test/runner.c @@ -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++) {