summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorBhasker Hariharan <bhaskerh@google.com>2020-06-17 14:07:27 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-17 14:08:48 -0700
commit505e8f4e3d72400194a69c220ce2f4288e957c4c (patch)
tree280dbd9e95725b8c73894668b91b9ce1905f7e78 /test
parent6d806ee7198422973a2e4efa9b539de7792b933f (diff)
Fix TtlDefault test on linux.
Different flavors of linux seem to use different defaults we accept 64 or 127 as the TtlDefault in the test. PiperOrigin-RevId: 316961150
Diffstat (limited to 'test')
-rw-r--r--test/syscalls/linux/socket_ip_unbound.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/socket_ip_unbound.cc b/test/syscalls/linux/socket_ip_unbound.cc
index 5536ab53a..796598eee 100644
--- a/test/syscalls/linux/socket_ip_unbound.cc
+++ b/test/syscalls/linux/socket_ip_unbound.cc
@@ -40,7 +40,7 @@ TEST_P(IPUnboundSocketTest, TtlDefault) {
socklen_t get_sz = sizeof(get);
EXPECT_THAT(getsockopt(socket->get(), IPPROTO_IP, IP_TTL, &get, &get_sz),
SyscallSucceedsWithValue(0));
- EXPECT_EQ(get, 64);
+ EXPECT_TRUE(get == 64 || get == 127);
EXPECT_EQ(get_sz, sizeof(get));
}