summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/syscalls/linux/proc_net.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/syscalls/linux/proc_net.cc b/test/syscalls/linux/proc_net.cc
index 1cc700fe7..73140b2e9 100644
--- a/test/syscalls/linux/proc_net.cc
+++ b/test/syscalls/linux/proc_net.cc
@@ -499,7 +499,13 @@ TEST(ProcSysNetIpv4Recovery, CanReadAndWrite) {
// Check initial value is set to 1.
EXPECT_THAT(PreadFd(fd.get(), &buf, sizeof(buf), 0),
SyscallSucceedsWithValue(sizeof(to_write) + 1));
- EXPECT_EQ(strcmp(buf, "1\n"), 0);
+ if (IsRunningOnGvisor()) {
+ // TODO(gvisor.dev/issue/5243): TCPRACKLossDetection = 1 should be turned on
+ // by default.
+ EXPECT_EQ(strcmp(buf, "0\n"), 0);
+ } else {
+ EXPECT_EQ(strcmp(buf, "1\n"), 0);
+ }
// Set tcp_recovery to one of the allowed constants.
EXPECT_THAT(PwriteFd(fd.get(), &to_write, sizeof(to_write), 0),