From 3065389973fcfb724981376c31a51b11b679abc0 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Tue, 27 Jan 2009 16:35:28 +0000 Subject: [PATCH] make it so that test_persistent_timeout can call loopexit only once; reported by Alexander Drozdov svn:r1062 --- test/regress.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/regress.c b/test/regress.c index 3d20514e..61c92d29 100644 --- a/test/regress.c +++ b/test/regress.c @@ -476,7 +476,9 @@ periodic_timeout_cb(int fd, short event, void *arg) int *count = arg; (*count)++; - if (*count > 5) { + if (*count == 6) { + /* call loopexit only once - on slow machines(?), it is + * apparently possible for this to get called twice. */ test_ok = 1; event_base_loopexit(global_base, NULL); }