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
This commit is contained in:
Zach Koopmans
2020-08-21 11:39:04 -07:00
committed by gVisor bot
parent 0324b94a73
commit c24db90be5
+7
View File
@@ -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<char> segment_suffix = std::get<0>(GetParam());
const int expected_errno = std::get<1>(GetParam());