diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-14 15:55:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-14 15:55:13 -0400 |
commit | eebd2d44a1f45366f372a0ece2a851912607e0a2 (patch) | |
tree | 934221af8fee8f54f5b1e4cf7200566df9a830f6 /src/test/test_options.c | |
parent | a4790e7d4b6ef406bf8cd14d8fd29e89f4b334ac (diff) | |
parent | fdfb4b196b7c38f45f2d37f73fcc96d746816cc3 (diff) | |
download | tor-eebd2d44a1f45366f372a0ece2a851912607e0a2.tar.gz tor-eebd2d44a1f45366f372a0ece2a851912607e0a2.zip |
Merge remote-tracking branch 'tor-github/pr/1393' into maint-0.4.2
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index d0e77c031d..69407a999b 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -14,6 +14,7 @@ #include "feature/nodelist/routerset.h" #include "core/mainloop/mainloop.h" #include "test/log_test_helpers.h" +#include "test/resolve_test_helpers.h" #include "lib/sandbox/sandbox.h" #include "lib/memarea/memarea.h" @@ -241,6 +242,7 @@ test_options_validate(void *arg) (void)arg; setup_log_callback(); sandbox_disable_getaddrinfo_cache(); + mock_hostname_resolver(); WANT_ERR("ExtORPort 500000", "Invalid ExtORPort", PH_VALIDATE); @@ -282,6 +284,7 @@ test_options_validate(void *arg) close_temp_logs(); clear_log_messages(); + unmock_hostname_resolver(); return; } |