Skip to content

Commit

Permalink
Remove syscall from test
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Oct 21, 2024
1 parent c912e37 commit 5fa0b81
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions tests/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2868,10 +2868,6 @@ fn test_err_instruction_count_syscall_capped() {

#[test]
fn test_err_non_terminate_capped() {
let config = Config {
enabled_sbpf_versions: SBPFVersion::V1..=SBPFVersion::V1,
..Config::default()
};
test_interpreter_and_jit_asm!(
"
mov64 r6, 0x0
Expand All @@ -2880,15 +2876,11 @@ fn test_err_non_terminate_capped() {
mov64 r3, 0x0
mov64 r4, 0x0
mov64 r5, r6
syscall bpf_trace_printf
add64 r6, 0x1
ja -0x8
exit",
config.clone(),
[],
(
"bpf_trace_printf" => syscalls::SyscallTracePrintf::vm,
),
(),
TestContextObject::new(7),
ProgramResult::Err(EbpfError::ExceededMaxInstructions),
);
Expand All @@ -2900,15 +2892,11 @@ fn test_err_non_terminate_capped() {
mov64 r3, 0x0
mov64 r4, 0x0
mov64 r5, r6
syscall bpf_trace_printf
add64 r6, 0x1
ja -0x8
exit",
config,
[],
(
"bpf_trace_printf" => syscalls::SyscallTracePrintf::vm,
),
(),
TestContextObject::new(1000),
ProgramResult::Err(EbpfError::ExceededMaxInstructions),
);
Expand Down

0 comments on commit 5fa0b81

Please sign in to comment.