Browse files

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.

  • Loading branch information...
Nick Mathewson
Nick Mathewson committed Jul 25, 2009
1 parent 4a110e2 commit b10cb25af667103d9a0927a997281a6f0e1805ad
Showing with 1 addition and 0 deletions.
  1. +1 −0 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) {

0 comments on commit b10cb25

Please sign in to comment.