mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-07 03:07:05 -04:00
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:
parent
6fbeb9237c
commit
8cc6883524
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user