diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-08 18:51:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-08 18:51:07 -0500 |
commit | 89ec191b6885d8e65f7cbdf1a56e2627c3aec75a (patch) | |
tree | fe2f0d28b781fa77dc6fa3c1b81058e79bfc0261 /src/test | |
parent | 286fa94064dcc6d1b260bec77de052274e3c4403 (diff) | |
parent | d73c671d6d9a60d9318814b7f95ede320e5d58b2 (diff) | |
download | tor-89ec191b6885d8e65f7cbdf1a56e2627c3aec75a.tar.gz tor-89ec191b6885d8e65f7cbdf1a56e2627c3aec75a.zip |
Merge remote-tracking branch 'public/bug20306_029' into maint-0.2.9
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_policy.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c index 0d4a3b104f..22f473f278 100644 --- a/src/test/test_policy.c +++ b/src/test/test_policy.c @@ -258,14 +258,16 @@ test_policies_general(void *arg) tt_assert(!cmp_addr_policies(policy2, policy2)); tt_assert(!cmp_addr_policies(NULL, NULL)); - tt_assert(!policy_is_reject_star(policy2, AF_INET)); - tt_assert(policy_is_reject_star(policy, AF_INET)); - tt_assert(policy_is_reject_star(policy10, AF_INET)); - tt_assert(!policy_is_reject_star(policy10, AF_INET6)); - tt_assert(policy_is_reject_star(policy11, AF_INET)); - tt_assert(policy_is_reject_star(policy11, AF_INET6)); - tt_assert(policy_is_reject_star(NULL, AF_INET)); - tt_assert(policy_is_reject_star(NULL, AF_INET6)); + tt_assert(!policy_is_reject_star(policy2, AF_INET, 1)); + tt_assert(policy_is_reject_star(policy, AF_INET, 1)); + tt_assert(policy_is_reject_star(policy10, AF_INET, 1)); + tt_assert(!policy_is_reject_star(policy10, AF_INET6, 1)); + tt_assert(policy_is_reject_star(policy11, AF_INET, 1)); + tt_assert(policy_is_reject_star(policy11, AF_INET6, 1)); + tt_assert(policy_is_reject_star(NULL, AF_INET, 1)); + tt_assert(policy_is_reject_star(NULL, AF_INET6, 1)); + tt_assert(!policy_is_reject_star(NULL, AF_INET, 0)); + tt_assert(!policy_is_reject_star(NULL, AF_INET6, 0)); addr_policy_list_free(policy); policy = NULL; |