From cf9972a1bdb056da7ef55ae12d0ddbc9a02402b9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 10 Aug 2007 07:40:50 +0000 Subject: r24300: Try to get the LOCAL-EVENT test to pass on hosts with epoll() in glibc, but not in the host kernel. Andrew Bartlett (This used to be commit bd70b0d1063c2ad471b1580361b818d64aadfe29) --- source4/torture/local/event.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source4/torture/local/event.c b/source4/torture/local/event.c index cedbad7bc2..9690001b7f 100644 --- a/source4/torture/local/event.c +++ b/source4/torture/local/event.c @@ -97,9 +97,17 @@ static bool test_event_context(struct torture_context *test, t = timeval_current(); while (!finished) { + errno = 0; if (event_loop_once(ev_ctx) == -1) { talloc_free(ev_ctx); - torture_fail(test, "Failed event loop\n"); + if (errno == ENOSYS) { + torture_comment(test, "Host kernel does not support %s event backend!", backend); + talloc_free(ev_ctx); + + return true; + } else { + torture_fail(test, "Failed event loop\n"); + } } } -- cgit