From a687a27e25a13128f7f3a914585a8cf8dc816e8f Mon Sep 17 00:00:00 2001 From: Zach Koopmans Date: Fri, 21 Aug 2020 11:37:12 -0700 Subject: Skip ElfInterpreterStaticTest for 5.X kernels. gVisor emulates 4.6 kernel versions, and test doesn't work on 5.0 versions (observed on our Ubuntu18.04 image). Skip it. PiperOrigin-RevId: 327845037 --- test/syscalls/linux/exec_binary.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/syscalls/linux/exec_binary.cc b/test/syscalls/linux/exec_binary.cc index 18d2f22c1..3797fd4c8 100644 --- a/test/syscalls/linux/exec_binary.cc +++ b/test/syscalls/linux/exec_binary.cc @@ -1042,6 +1042,13 @@ class ElfInterpreterStaticTest // Statically linked ELF with a statically linked ELF interpreter. TEST_P(ElfInterpreterStaticTest, Test) { + // TODO(gvisor.dev/issue/3721): Test has been observed to segfault on 5.X + // kernels. + if (!IsRunningOnGvisor()) { + auto version = ASSERT_NO_ERRNO_AND_VALUE(GetKernelVersion()); + SKIP_IF(version.major > 4); + } + const std::vector segment_suffix = std::get<0>(GetParam()); const int expected_errno = std::get<1>(GetParam()); -- cgit v1.2.3