[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] test_util: Do not check for ENETUNREACH unless it exists.



commit 66437710afd9e06ef8bed21f18359db08594a313
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Aug 6 11:35:50 2019 -0400

    test_util: Do not check for ENETUNREACH unless it exists.
    
    Fixes bug 31352; bug not in any released Tor.
---
 src/test/test_util.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/test_util.c b/src/test/test_util.c
index 41ecbfd38..c56d3488b 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]));



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits