]> granicus.if.org Git - libevent/commitdiff
Fix the main/methods unit test to pass from "make verify".
authorNick Mathewson <nickm@torproject.org>
Sat, 25 Jul 2009 03:35:32 +0000 (03:35 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 25 Jul 2009 03:35:32 +0000 (03:35 +0000)
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

test/regress.c

index 4ffc3a2c65545a0552a0fab16e5fe8c9727340f2..71e3776c9dd429dcf96169f53f5a49f1438e7ec0 100644 (file)
@@ -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) {