mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
Try to make the win32 ersatz_socketpair pass.
This commit is contained in:
parent
48a4ef3f6a
commit
362f60e2d4
@ -3426,11 +3426,7 @@ test_util_socketpair(void *arg)
|
|||||||
ersatz ? tor_ersatz_socketpair : tor_socketpair;
|
ersatz ? tor_ersatz_socketpair : tor_socketpair;
|
||||||
int n = get_n_open_sockets();
|
int n = get_n_open_sockets();
|
||||||
tor_socket_t fds[2] = {TOR_INVALID_SOCKET, TOR_INVALID_SOCKET};
|
tor_socket_t fds[2] = {TOR_INVALID_SOCKET, TOR_INVALID_SOCKET};
|
||||||
#ifdef _WIN32
|
|
||||||
const int family = AF_INET;
|
|
||||||
#else
|
|
||||||
const int family = AF_UNIX;
|
const int family = AF_UNIX;
|
||||||
#endif
|
|
||||||
|
|
||||||
tt_int_op(0, ==, tor_socketpair_fn(family, SOCK_STREAM, 0, fds));
|
tt_int_op(0, ==, tor_socketpair_fn(family, SOCK_STREAM, 0, fds));
|
||||||
tt_assert(SOCKET_OK(fds[0]));
|
tt_assert(SOCKET_OK(fds[0]));
|
||||||
|
Loading…
Reference in New Issue
Block a user