From 1133678c346d51f669892973a4c99982c7b28f86 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 17 Aug 2007 05:21:05 +0000 Subject: r24502: More work to get LOCAL-EVENT passing on all platforms: - Make the epoll_event_context_init() call fail if epoll_create() fails. This should cause this backend to be skipped on host with epoll() in libc but not in the kernel. - At the moment, there is no sensible way to handle failures to add an epoll() event, and 'fallback to select' is misnamed (so we now abort()). Andrew Bartlett (This used to be commit fb1e1eebdae740a2b66ee1ea9e1e35f21292ac14) --- source4/torture/local/event.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source4/torture/local') diff --git a/source4/torture/local/event.c b/source4/torture/local/event.c index d3ef9d5090..e2c7de1c72 100644 --- a/source4/torture/local/event.c +++ b/source4/torture/local/event.c @@ -100,14 +100,7 @@ static bool test_event_context(struct torture_context *test, errno = 0; if (event_loop_once(ev_ctx) == -1) { talloc_free(ev_ctx); - 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, talloc_asprintf(test, "Failed event loop %s\n", strerror(errno))); - } + torture_fail(test, talloc_asprintf(test, "Failed event loop %s\n", strerror(errno))); } } -- cgit