From: Nick Mathewson Date: Fri, 27 May 2011 18:57:55 +0000 (-0400) Subject: Disable main/many_events_slow_add with evport backend X-Git-Tag: release-2.0.12-stable~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c11c6fcd82c97f528f530177071171f012ca3c97;p=libevent Disable main/many_events_slow_add with evport backend In 2.0 and earlier, evport only reports up to 8 events at a time, which confuses this test badly. --- diff --git a/test/regress.c b/test/regress.c index abe6af8c..0987809a 100644 --- a/test/regress.c +++ b/test/regress.c @@ -2218,6 +2218,7 @@ test_many_events(void *arg) int called[MANY]; int i; int loopflags = EVLOOP_NONBLOCK, evflags=0; + const int is_evport = !strcmp(event_base_get_method(base),"evport"); if (one_at_a_time) { loopflags |= EVLOOP_ONCE; evflags = EV_PERSIST; @@ -2226,6 +2227,10 @@ test_many_events(void *arg) memset(sock, 0xff, sizeof(sock)); memset(ev, 0, sizeof(ev)); memset(called, 0, sizeof(called)); + if (is_evport && one_at_a_time) { + TT_DECLARE("NOTE", ("evport can't pass this in 2.0; skipping\n")); + tt_skip(); + } for (i = 0; i < MANY; ++i) { /* We need an event that will hit the backend, and that will