commit a8e6eab379bdc67ebdec1c3022c11e1e9e90d503
parent 81e37b81f1b0329a312a2647cd3601f112d6657b
Author: David Goulet <dgoulet@torproject.org>
Date: Mon, 19 Aug 2019 09:49:33 -0400
Merge branch 'tor-github/pr/1213'
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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]));