diff --git a/src/elf.rs b/src/elf.rs index e3aac75f..a72c8f26 100644 --- a/src/elf.rs +++ b/src/elf.rs @@ -2272,21 +2272,6 @@ mod test { ElfExecutable::load(&elf_bytes, loader()).expect("validation failed"); } - #[test] - #[should_panic(expected = r#"validation failed: UnsupportedExecutableCapabilities"#)] - fn test_static_syscall_disabled() { - let loader = BuiltinProgram::new_loader(Config { - enable_sbpf_v2: false, - ..Config::default() - }); - let elf_bytes = - std::fs::read("tests/elfs/syscall_static_unknown.so").expect("failed to read elf file"); - - // when config.static_syscalls=false, all CALL_IMMs are treated as relative - // calls for backwards compatibility - ElfExecutable::load(&elf_bytes, Arc::new(loader)).expect("validation failed"); - } - #[test] #[should_panic(expected = "validation failed: InvalidProgramHeader")] fn test_program_headers_overflow() {