diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-08 18:51:19 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-08 18:51:19 -0500 |
commit | c58592e658d6e9d7a99ec61b3746a80e4e6debe0 (patch) | |
tree | 4e58d59384b5fe56dc8f39d0ce09b589761b7fe7 /src/test | |
parent | 31f41fe09613398dc818ae30251724779f1f53c8 (diff) | |
parent | 89ec191b6885d8e65f7cbdf1a56e2627c3aec75a (diff) | |
download | tor-c58592e658d6e9d7a99ec61b3746a80e4e6debe0.tar.gz tor-c58592e658d6e9d7a99ec61b3746a80e4e6debe0.zip |
Merge branch '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 b89de01b7b..4df40f618e 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; |