diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2018-10-20 20:32:26 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2018-10-20 20:34:08 +0300 |
commit | 98cef6807eb70e7c459f6f80a06f894fac63100a (patch) | |
tree | e3a13c1d767718cbaf24c47240bd369e9b96c3a7 /src/test/test_dns.c | |
parent | 92f0e04f8d08574be60da7e6ebad90a2883a488a (diff) | |
download | tor-98cef6807eb70e7c459f6f80a06f894fac63100a.tar.gz tor-98cef6807eb70e7c459f6f80a06f894fac63100a.zip |
Exclude test and a supporting function when evdns_base_get_nameserver_addr() is not available
Diffstat (limited to 'src/test/test_dns.c')
-rw-r--r-- | src/test/test_dns.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test_dns.c b/src/test/test_dns.c index ea59a49b5b..ea0fcf8c5e 100644 --- a/src/test/test_dns.c +++ b/src/test/test_dns.c @@ -1,6 +1,7 @@ /* Copyright (c) 2015-2018, The Tor Project, Inc. */ /* See LICENSE for licensing information */ +#include "orconfig.h" #include "core/or/or.h" #include "test/test.h" @@ -21,6 +22,7 @@ #define NS_MODULE dns +#ifdef HAVE_EVDNS_BASE_GET_NAMESERVER_ADDR #define NS_SUBMODULE configure_nameservers_fallback static or_options_t options = { @@ -75,6 +77,7 @@ NS(test_main)(void *arg) } #undef NS_SUBMODULE +#endif #define NS_SUBMODULE clip_ttl @@ -796,7 +799,9 @@ NS(test_main)(void *arg) #undef NS_SUBMODULE struct testcase_t dns_tests[] = { +#ifdef HAVE_EVDNS_BASE_GET_NAMESERVER_ADDR TEST_CASE(configure_nameservers_fallback), +#endif TEST_CASE(clip_ttl), TEST_CASE(resolve), TEST_CASE_ASPECT(resolve_impl, addr_is_ip_no_need_to_resolve), |