From ab14f7c140e1f11377975b2084087d27ac88e062 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 24 Jan 2012 11:45:00 -0500 Subject: [PATCH] Reduce the timeout in the main/fork test. There was no reason for it to be so long, except for the lack of a usleep --- test/regress.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/regress.c b/test/regress.c index 0371e2b7..0fdfeb35 100644 --- a/test/regress.c +++ b/test/regress.c @@ -857,7 +857,10 @@ test_fork(void) } /* wait for the child to read the data */ - sleep(1); + { + const struct timeval tv = { 0, 100000 }; + evutil_usleep(&tv); + } if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) { tt_fail_perror("write");