diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-08 09:23:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-08 09:23:20 -0400 |
commit | 8acb951fc823e985218ef86dce1939f106febf7e (patch) | |
tree | 7fbc67f302c58236f260a2735b95c90c6e7cde25 | |
parent | 08d1ac4f2ae81a79d19cbb830c3c88cb2998cb6e (diff) | |
download | tor-8acb951fc823e985218ef86dce1939f106febf7e.tar.gz tor-8acb951fc823e985218ef86dce1939f106febf7e.zip |
Unit test fix: windows should be able to handle DNSPort just fine.
-rw-r--r-- | src/test/test_config.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 80a172789b..c1222e5276 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -4011,9 +4011,6 @@ test_config_parse_port_config__ports__ports_given(void *data) ret = parse_port_config(slout, config_port_valid, NULL, "DNS", CONN_TYPE_AP_DNS_LISTENER, NULL, 0, CL_PORT_TAKES_HOSTNAMES); -#ifdef _WIN32 - tt_int_op(ret, OP_EQ, -1); -#else tt_int_op(ret, OP_EQ, 0); tt_int_op(smartlist_len(slout), OP_EQ, 1); port_cfg = (port_cfg_t *)smartlist_get(slout, 0); @@ -4021,7 +4018,6 @@ test_config_parse_port_config__ports__ports_given(void *data) tt_int_op(port_cfg->entry_cfg.ipv4_traffic, OP_EQ, 0); tt_int_op(port_cfg->entry_cfg.ipv6_traffic, OP_EQ, 0); tt_int_op(port_cfg->entry_cfg.onion_traffic, OP_EQ, 0); -#endif // Test failure if we have DNS but no ipv4 and no ipv6 config_free_lines(config_port_invalid); config_port_invalid = NULL; |