Add explanation notes to failing conditionals tests

This commit is contained in:
Pragyansh Chaturvedi
2025-10-08 05:57:17 +05:30
committed by varun-r-mallya
parent f3c80f9e5f
commit cfc246c80d
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,11 @@ from pythonbpf import bpf, map, section, bpfglobal
from ctypes import c_void_p, c_int64, c_uint64
from pythonbpf.maps import HashMap
# NOTE: Decided against fixing this
# as a workaround is assigning the result of lookup to a variable
# and then using that variable in the if statement.
# Might fix in future.
@bpf
@map

View File

@ -1,6 +1,11 @@
from pythonbpf import bpf, struct, section, bpfglobal, compile
from ctypes import c_void_p, c_int64, c_uint64
# NOTE: Decided against fixing this
# as one workaround is to just check any field of the struct
# in the if statement. Ugly but works.
# Might fix in future.
@bpf
@struct