Commit ca4c3ad8 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[master] Use loopback in tests

Since we couldn't have :: as destination address (it seems), we use ::1,
which should be possible.
parent a2d07257
...@@ -64,7 +64,7 @@ namespace { ...@@ -64,7 +64,7 @@ namespace {
// Just helper macros // Just helper macros
#define INADDR_SET(WHAT) do { WHAT.sin_addr.s_addr = INADDR_ANY; } while (0) #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 // If the get_sock returned something useful, listen must work
#define TCP_CHECK(UNUSED, SOCKET) do { \ #define TCP_CHECK(UNUSED, SOCKET) do { \
EXPECT_EQ(0, listen(SOCKET, 1)); \ EXPECT_EQ(0, listen(SOCKET, 1)); \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment