mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Redux: don't expect unix sockets to be accepted on windows
This commit is contained in:
parent
49442b5e67
commit
ac7e43d30a
@ -4427,10 +4427,14 @@ test_config_parse_port_config__ports__ports_given(void *data)
|
|||||||
ret = parse_port_config(slout, config_port_valid, NULL, "DNS",
|
ret = parse_port_config(slout, config_port_valid, NULL, "DNS",
|
||||||
CONN_TYPE_AP_LISTENER, "127.0.0.46", 0,
|
CONN_TYPE_AP_LISTENER, "127.0.0.46", 0,
|
||||||
CL_PORT_DFLT_GROUP_WRITABLE);
|
CL_PORT_DFLT_GROUP_WRITABLE);
|
||||||
|
#ifdef _WIN32
|
||||||
|
tt_int_op(ret, OP_EQ, -1);
|
||||||
|
#else
|
||||||
tt_int_op(ret, OP_EQ, 0);
|
tt_int_op(ret, OP_EQ, 0);
|
||||||
tt_int_op(smartlist_len(slout), OP_EQ, 1);
|
tt_int_op(smartlist_len(slout), OP_EQ, 1);
|
||||||
port_cfg = (port_cfg_t *)smartlist_get(slout, 0);
|
port_cfg = (port_cfg_t *)smartlist_get(slout, 0);
|
||||||
tt_int_op(port_cfg->is_group_writable, OP_EQ, 1);
|
tt_int_op(port_cfg->is_group_writable, OP_EQ, 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
done:
|
done:
|
||||||
smartlist_free(slout);
|
smartlist_free(slout);
|
||||||
|
Loading…
Reference in New Issue
Block a user