From: Nick Mathewson Date: Sat, 25 Jul 2009 03:35:32 +0000 (+0000) Subject: Fix the main/methods unit test to pass from "make verify". X-Git-Tag: release-2.0.3-alpha~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cc68835245dd3f542d28299ecfa5c2bc3d471eb;p=libevent Fix the main/methods unit test to pass from "make verify". The problem was introduced when we changed the semantics of get_supported_methods() to reflect all the methods that exist. Previously, it had not returned methods disabled from the environment, but the test didn't know that. svn:r1379 --- diff --git a/test/regress.c b/test/regress.c index 4ffc3a2c..71e3776c 100644 --- a/test/regress.c +++ b/test/regress.c @@ -1478,6 +1478,7 @@ test_methods(void *ptr) assert(cfg != NULL); tt_int_op(event_config_avoid_method(cfg, backend), ==, 0); + event_config_set_flag(cfg, EVENT_BASE_FLAG_IGNORE_ENV); base = event_base_new_with_config(cfg); if (n_methods > 1) {