Skip to content

Commit

Permalink
Removes test_static_syscall_disabled().
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Jun 21, 2023
1 parent d03710c commit 42e217f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 42e217f

Please sign in to comment.