Parcourir la source

[master] Use loopback in tests

Since we couldn't have :: as destination address (it seems), we use ::1,
which should be possible.
Michal 'vorner' Vaner il y a 14 ans
Parent
commit
ca4c3ad8a4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/bin/sockcreator/tests/sockcreator_tests.cc

+ 1 - 1
src/bin/sockcreator/tests/sockcreator_tests.cc

@@ -64,7 +64,7 @@ namespace {
 
 // Just helper macros
 #define INADDR_SET(WHAT) do { WHAT.sin_addr.s_addr = INADDR_ANY; } while (0)
-#define IN6ADDR_SET(WHAT) do { WHAT.sin6_addr = in6addr_any; } while (0)
+#define IN6ADDR_SET(WHAT) do { WHAT.sin6_addr = in6addr_loopback; } while (0)
 // If the get_sock returned something useful, listen must work
 #define TCP_CHECK(UNUSED, SOCKET) do { \
         EXPECT_EQ(0, listen(SOCKET, 1)); \