Skip to content

Commit ecac24c

Browse files
committed
Add explanation notes to failing conditionals tests
1 parent a764b09 commit ecac24c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/failing_tests/conditionals/helper_cond.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
from ctypes import c_void_p, c_int64, c_uint64
33
from pythonbpf.maps import HashMap
44

5+
# NOTE: Decided against fixing this
6+
# as a workaround is assigning the result of lookup to a variable
7+
# and then using that variable in the if statement.
8+
# Might fix in future.
9+
510

611
@bpf
712
@map

tests/failing_tests/conditionals/struct_ptr.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
from pythonbpf import bpf, struct, section, bpfglobal, compile
22
from ctypes import c_void_p, c_int64, c_uint64
33

4+
# NOTE: Decided against fixing this
5+
# as one workaround is to just check any field of the struct
6+
# in the if statement. Ugly but works.
7+
# Might fix in future.
8+
49

510
@bpf
611
@struct

0 commit comments

Comments
 (0)