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
This commit is contained in:
Nick Mathewson 2009-07-25 03:35:32 +00:00
parent 6fbeb9237c
commit 8cc6883524

View 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) {