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
This commit is contained in:
Bhasker Hariharan 2020-06-17 14:07:27 -07:00 committed by gVisor bot
parent 6d806ee719
commit 505e8f4e3d
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}