aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-08-19 09:49:33 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-08-19 09:49:33 -0400
commita8e6eab379bdc67ebdec1c3022c11e1e9e90d503 (patch)
treeb181a91aa1b169d6f8f2b9017290f578e7fbc16a /src
parent81e37b81f1b0329a312a2647cd3601f112d6657b (diff)
parent66437710afd9e06ef8bed21f18359db08594a313 (diff)
downloadtor-a8e6eab379bdc67ebdec1c3022c11e1e9e90d503.tar.gz
tor-a8e6eab379bdc67ebdec1c3022c11e1e9e90d503.zip
Merge branch 'tor-github/pr/1213'
Diffstat (limited to 'src')
-rw-r--r--src/test/test_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 41ecbfd388..c56d3488ba 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -5399,11 +5399,13 @@ test_util_socketpair(void *arg)
tt_skip();
}
#endif /* defined(__FreeBSD__) */
+#ifdef ENETUNREACH
if (ersatz && socketpair_result == -ENETUNREACH) {
/* We can also fail with -ENETUNREACH if we have no network stack at
* all. */
tt_skip();
}
+#endif
tt_int_op(0, OP_EQ, socketpair_result);
tt_assert(SOCKET_OK(fds[0]));