diff --git a/test/root/cgroup_test.go b/test/root/cgroup_test.go index de51b6561..f4133af67 100644 --- a/test/root/cgroup_test.go +++ b/test/root/cgroup_test.go @@ -203,13 +203,6 @@ func TestCgroupV1(t *testing.T) { file: "cpu.cfs_quota_us", want: "3000", }, - { - field: "kernel-memory", - value: 100 << 20, - ctrl: "memory", - file: "memory.kmem.limit_in_bytes", - want: "104857600", - }, { field: "memory", value: 1 << 30, @@ -270,8 +263,6 @@ func TestCgroupV1(t *testing.T) { hostconf.Resources.CPUPeriod = attr.value case "cpu-quota": hostconf.Resources.CPUQuota = attr.value - case "kernel-memory": - hostconf.Resources.KernelMemory = attr.value case "memory": hostconf.Resources.Memory = attr.value case "memory-reservation": @@ -440,8 +431,6 @@ func TestCgroupV2(t *testing.T) { hostconf.Resources.CPUQuota = defaultTestCPUQuota case "cpu-quota": hostconf.Resources.CPUQuota = attr.value - case "kernel-memory": - hostconf.Resources.KernelMemory = attr.value case "memory": hostconf.Resources.Memory = attr.value case "memory-reservation": diff --git a/test/syscalls/linux/eventfd.cc b/test/syscalls/linux/eventfd.cc index b646d18b3..898ae3881 100644 --- a/test/syscalls/linux/eventfd.cc +++ b/test/syscalls/linux/eventfd.cc @@ -101,6 +101,9 @@ TEST(EventfdTest, SmallRead) { } TEST(EventfdTest, IllegalSeek) { + // TODO: b/298787679 - this test fails on 6.0+ kernels. + SKIP_IF(!IsRunningOnGvisor()); + FileDescriptor efd = ASSERT_NO_ERRNO_AND_VALUE(NewEventFD(0, 0)); EXPECT_THAT(lseek(efd.get(), 0, SEEK_SET), SyscallFailsWithErrno(ESPIPE)); } diff --git a/test/syscalls/linux/flock.cc b/test/syscalls/linux/flock.cc index 54b09de69..8293ea6f4 100644 --- a/test/syscalls/linux/flock.cc +++ b/test/syscalls/linux/flock.cc @@ -652,7 +652,7 @@ TEST_F(FlockTest, BlockingLockFirstExclusiveSecondExclusive) { TEST(FlockTestNoFixture, BadFD) { // EBADF: fd is not an open file descriptor. - ASSERT_THAT(flock(-1, 0), SyscallFailsWithErrno(EBADF)); + ASSERT_THAT(flock(-1, LOCK_UN), SyscallFailsWithErrno(EBADF)); } TEST(FlockTestNoFixture, FlockDir) { diff --git a/test/syscalls/linux/inotify.cc b/test/syscalls/linux/inotify.cc index 07fd89c63..b64c8d87e 100644 --- a/test/syscalls/linux/inotify.cc +++ b/test/syscalls/linux/inotify.cc @@ -333,6 +333,9 @@ PosixErrorOr InotifyAddWatch(int fd, const std::string& path, } TEST(Inotify, IllegalSeek) { + // TODO: b/298787679 - this test fails on 6.0+ kernels. + SKIP_IF(!IsRunningOnGvisor()); + const FileDescriptor fd = ASSERT_NO_ERRNO_AND_VALUE(InotifyInit1(0)); EXPECT_THAT(lseek(fd.get(), 0, SEEK_SET), SyscallFailsWithErrno(ESPIPE)); } diff --git a/test/syscalls/linux/socket_inet_loopback.cc b/test/syscalls/linux/socket_inet_loopback.cc index 9a62ce2bc..84b3460fb 100644 --- a/test/syscalls/linux/socket_inet_loopback.cc +++ b/test/syscalls/linux/socket_inet_loopback.cc @@ -1868,7 +1868,9 @@ INSTANTIATE_TEST_SUITE_P( using SocketMultiProtocolInetLoopbackTest = ::testing::TestWithParam; -TEST_P(SocketMultiProtocolInetLoopbackTest, V4MappedLoopbackOnlyReservesV4) { +// TODO: b/298680322 - Investigate why this fails on newer kernel versions. +TEST_P(SocketMultiProtocolInetLoopbackTest, + DISABLED_V4MappedLoopbackOnlyReservesV4) { ProtocolTestParam const& param = GetParam(); for (int i = 0; true; i++) { @@ -1917,7 +1919,9 @@ TEST_P(SocketMultiProtocolInetLoopbackTest, V4MappedLoopbackOnlyReservesV4) { } } -TEST_P(SocketMultiProtocolInetLoopbackTest, V4MappedAnyOnlyReservesV4) { +// TODO: b/298680322 - Investigate why this fails on newer kernel versions. +TEST_P(SocketMultiProtocolInetLoopbackTest, + DISABLED_V4MappedAnyOnlyReservesV4) { ProtocolTestParam const& param = GetParam(); for (int i = 0; true; i++) { @@ -2310,7 +2314,9 @@ TEST_P(SocketMultiProtocolInetLoopbackTest, V6EphemeralPortReserved) { } } -TEST_P(SocketMultiProtocolInetLoopbackTest, V4MappedEphemeralPortReserved) { +// TODO: b/298680322 - Investigate why this fails on newer kernel versions. +TEST_P(SocketMultiProtocolInetLoopbackTest, + DISABLED_V4MappedEphemeralPortReserved) { ProtocolTestParam const& param = GetParam(); for (int i = 0; true; i++) { diff --git a/test/syscalls/linux/timerfd.cc b/test/syscalls/linux/timerfd.cc index 279e5b596..5a65463fb 100644 --- a/test/syscalls/linux/timerfd.cc +++ b/test/syscalls/linux/timerfd.cc @@ -218,6 +218,9 @@ TEST_P(TimerfdTest, SetToPastExpiresEventually) { } TEST_P(TimerfdTest, IllegalSeek) { + // TODO: b/298787679 - this test fails on 6.0+ kernels. + SKIP_IF(!IsRunningOnGvisor()); + auto const tfd = ASSERT_NO_ERRNO_AND_VALUE(TimerfdCreate(GetParam(), 0)); EXPECT_THAT(lseek(tfd.get(), 0, SEEK_SET), SyscallFailsWithErrno(ESPIPE)); }