mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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:
committed by
gVisor bot
parent
0324b94a73
commit
c24db90be5
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user