diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-08-17 05:21:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:02 -0500 |
commit | 1133678c346d51f669892973a4c99982c7b28f86 (patch) | |
tree | ee07c4764ec6007a85e7134ddf7ed4dbf817d9d1 /source4/torture/local | |
parent | 113587b823fba2f48b22da03e036771f6ecf6611 (diff) | |
download | samba-1133678c346d51f669892973a4c99982c7b28f86.tar.gz samba-1133678c346d51f669892973a4c99982c7b28f86.tar.xz samba-1133678c346d51f669892973a4c99982c7b28f86.zip |
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)
Diffstat (limited to 'source4/torture/local')
-rw-r--r-- | source4/torture/local/event.c | 9 |
1 files changed, 1 insertions, 8 deletions
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))); } } |