Skip to content

Commit

Permalink
tests: make data-carrying-enum.rs work with older bpftool
Browse files Browse the repository at this point in the history
Older bpftool doesn't emit the encoding key. Skip it since it isn't
relevant for the test.
  • Loading branch information
alessandrod committed Dec 3, 2023
1 parent c20ee1b commit f2ff04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/btf/assembly/data-carrying-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {

// The data-carrying enum should be not included in BTF.

// CHECK: ENUM 'SimpleEnum' encoding=UNSIGNED size=1 vlen=3
// CHECK: ENUM 'SimpleEnum'{{.*}} size=1 vlen=3
// CHECK-NEXT: 'First' val=0
// CHECK-NEXT: 'Second' val=1
// CHECK-NEXT: 'Third' val=2
Expand Down

0 comments on commit f2ff04a

Please sign in to comment.