mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
test_util: Do not check for ENETUNREACH unless it exists.
Fixes bug 31352; bug not in any released Tor.
This commit is contained in:
parent
88f9b123d6
commit
66437710af
1 changed files with 2 additions and 0 deletions
|
@ -5399,11 +5399,13 @@ test_util_socketpair(void *arg)
|
||||||
tt_skip();
|
tt_skip();
|
||||||
}
|
}
|
||||||
#endif /* defined(__FreeBSD__) */
|
#endif /* defined(__FreeBSD__) */
|
||||||
|
#ifdef ENETUNREACH
|
||||||
if (ersatz && socketpair_result == -ENETUNREACH) {
|
if (ersatz && socketpair_result == -ENETUNREACH) {
|
||||||
/* We can also fail with -ENETUNREACH if we have no network stack at
|
/* We can also fail with -ENETUNREACH if we have no network stack at
|
||||||
* all. */
|
* all. */
|
||||||
tt_skip();
|
tt_skip();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
tt_int_op(0, OP_EQ, socketpair_result);
|
tt_int_op(0, OP_EQ, socketpair_result);
|
||||||
|
|
||||||
tt_assert(SOCKET_OK(fds[0]));
|
tt_assert(SOCKET_OK(fds[0]));
|
||||||
|
|
Loading…
Add table
Reference in a new issue