From 9392a9741228239e3e9f0e046ce9202399f00b5c 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 424005b12..fae306d2d 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]