aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-01-09 11:01:45 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-09 11:08:18 -0500
commitc9855f23c161d305433ff86c5fb68988777df5a8 (patch)
tree56fdae608c5e98fc8de1e0bfb3e86df1ff62901b /src/test/test_dns.c
parente2fcfc6e52e5e95a43df12259055fa38e9a9c06d (diff)
downloadtor-c9855f23c161d305433ff86c5fb68988777df5a8.tar.gz
tor-c9855f23c161d305433ff86c5fb68988777df5a8.zip
Replace various NS_MODULE/SUBMODULE vals with shorter names.
This will help avoid wide lines in our output.
Diffstat (limited to 'src/test/test_dns.c')
-rw-r--r--src/test/test_dns.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/test/test_dns.c b/src/test/test_dns.c
index 1b6d01e480..6ca858224f 100644
--- a/src/test/test_dns.c
+++ b/src/test/test_dns.c
@@ -23,7 +23,7 @@
#define NS_MODULE dns
#ifdef HAVE_EVDNS_BASE_GET_NAMESERVER_ADDR
-#define NS_SUBMODULE configure_nameservers_fallback
+#define NS_SUBMODULE configure_ns_fallback
static or_options_t options = {
.ORPort_set = 1,
@@ -386,7 +386,7 @@ create_valid_exitconn(void)
return exitconn;
}
-#define NS_SUBMODULE ASPECT(resolve_impl, addr_is_ip_no_need_to_resolve)
+#define NS_SUBMODULE ASPECT(impl, addr_is_ip)
/*
* Given that <b>exitconn->base_.address</b> is IP address string, we
@@ -431,7 +431,7 @@ NS(test_main)(void *arg)
#undef NS_SUBMODULE
-#define NS_SUBMODULE ASPECT(resolve_impl, non_exit)
+#define NS_SUBMODULE ASPECT(impl, non_exit)
/** Given that Tor instance is not configured as an exit node, we want
* dns_resolve_impl() to fail with return value -1.
@@ -472,7 +472,7 @@ NS(test_main)(void *arg)
#undef NS_SUBMODULE
-#define NS_SUBMODULE ASPECT(resolve_impl, addr_is_invalid_dest)
+#define NS_SUBMODULE ASPECT(impl, addr_is_invalid_dest)
/** Given that address is not a valid destination (as judged by
* address_is_invalid_destination() function), we want dns_resolve_impl()
@@ -515,7 +515,7 @@ NS(test_main)(void *arg)
#undef NS_SUBMODULE
-#define NS_SUBMODULE ASPECT(resolve_impl, malformed_ptr)
+#define NS_SUBMODULE ASPECT(impl, malformed_ptr)
/** Given that address is a malformed PTR name, we want dns_resolve_impl to
* fail.
@@ -567,7 +567,7 @@ NS(test_main)(void *arg)
#undef NS_SUBMODULE
-#define NS_SUBMODULE ASPECT(resolve_impl, cache_hit_pending)
+#define NS_SUBMODULE ASPECT(impl, cache_hit_pending)
/* Given that there is already a pending resolve for the given address,
* we want dns_resolve_impl to append our exit connection to list
@@ -633,7 +633,7 @@ NS(test_main)(void *arg)
#undef NS_SUBMODULE
-#define NS_SUBMODULE ASPECT(resolve_impl, cache_hit_cached)
+#define NS_SUBMODULE ASPECT(impl, cache_hit_cached)
/* Given that a finished DNS resolve is available in our cache, we want
* dns_resolve_impl() return it to called via resolve_out and pass the
@@ -714,7 +714,7 @@ NS(test_main)(void *arg)
#undef NS_SUBMODULE
-#define NS_SUBMODULE ASPECT(resolve_impl, cache_miss)
+#define NS_SUBMODULE ASPECT(impl, cache_miss)
/* Given that there are neither pending nor pre-cached resolve for a given
* address, we want dns_resolve_impl() to create a new cached_resolve_t
@@ -797,17 +797,17 @@ NS(test_main)(void *arg)
struct testcase_t dns_tests[] = {
#ifdef HAVE_EVDNS_BASE_GET_NAMESERVER_ADDR
- TEST_CASE(configure_nameservers_fallback),
+ TEST_CASE(configure_ns_fallback),
#endif
TEST_CASE(clip_ttl),
TEST_CASE(resolve),
- TEST_CASE_ASPECT(resolve_impl, addr_is_ip_no_need_to_resolve),
- TEST_CASE_ASPECT(resolve_impl, non_exit),
- TEST_CASE_ASPECT(resolve_impl, addr_is_invalid_dest),
- TEST_CASE_ASPECT(resolve_impl, malformed_ptr),
- TEST_CASE_ASPECT(resolve_impl, cache_hit_pending),
- TEST_CASE_ASPECT(resolve_impl, cache_hit_cached),
- TEST_CASE_ASPECT(resolve_impl, cache_miss),
+ TEST_CASE_ASPECT(impl, addr_is_ip),
+ TEST_CASE_ASPECT(impl, non_exit),
+ TEST_CASE_ASPECT(impl, addr_is_invalid_dest),
+ TEST_CASE_ASPECT(impl, malformed_ptr),
+ TEST_CASE_ASPECT(impl, cache_hit_pending),
+ TEST_CASE_ASPECT(impl, cache_hit_cached),
+ TEST_CASE_ASPECT(impl, cache_miss),
END_OF_TESTCASES
};