From a2466f22b0a4110ee7d335e3013a4e968aaeaacd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Thu, 12 Sep 2024 16:24:25 +0200 Subject: [PATCH] Adds test coverage. --- tests/execution.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/execution.rs b/tests/execution.rs index 424005b1..fae306d2 100644 --- a/tests/execution.rs +++ b/tests/execution.rs @@ -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]