Skip to content

Commit

Permalink
Adds test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Sep 12, 2024
1 parent 6c82b13 commit a2466f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3499,6 +3499,15 @@ fn test_execution_overrun() {
TestContextObject::new(1),
ProgramResult::Err(EbpfError::ExceededMaxInstructions),
);
test_interpreter_and_jit_asm!(
"
add r1, 0",
config.clone(),
[],
(),
TestContextObject::new(0),
ProgramResult::Err(EbpfError::ExceededMaxInstructions),
);
}

#[test]
Expand Down

0 comments on commit a2466f2

Please sign in to comment.