summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-08-10 07:40:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:01:37 -0500
commitcf9972a1bdb056da7ef55ae12d0ddbc9a02402b9 (patch)
tree23cdd68e3f554ccee2d14ca07d88c1f9e1ea46ed /source4/torture
parent09d33c5612cd9e8904675144bada848a81b92db6 (diff)
downloadsamba-cf9972a1bdb056da7ef55ae12d0ddbc9a02402b9.tar.gz
samba-cf9972a1bdb056da7ef55ae12d0ddbc9a02402b9.tar.bz2
samba-cf9972a1bdb056da7ef55ae12d0ddbc9a02402b9.zip
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)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/local/event.c10
1 files changed, 9 insertions, 1 deletions
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");
+ }
}
}