Skip to content

Commit

Permalink
Add expect failed test for loading BPF program with global variables
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan-Jowett authored and elazarg committed Dec 17, 2024
1 parent 3289ffc commit 7202c63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ebpf-samples
3 changes: 3 additions & 0 deletions src/test/test_verify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@ TEST_SECTION("falco", "probe.o", "raw_tracepoint/signal_deliver")
TEST_SECTION_REJECT_IF_STRICT("build", "mapoverflow.o", ".text")
TEST_SECTION_REJECT_IF_STRICT("build", "mapunderflow.o", ".text")

// Test uses global variables, which are not supported yet by the verifier.
TEST_SECTION_FAIL("build", "global_variable.o", ".text")

/*
* These programs contain "call -1" instruction and cannot be verified:
TEST_SECTION("raw_tracepoint/filler/sys_access_e")
Expand Down

0 comments on commit 7202c63

Please sign in to comment.