ebpfpub
ebpfpub copied to clipboard
Failing tests on CentOS 8
Version tested: built from HEAD Wed Oct 14, commit ea75729cb588de13a95882854ab358b0cda9ec07
[trailofbits@localhost build]$ cmake --build . -j$(nproc)
[ 12%] Built target utils
[ 48%] Built target ebpf
[ 57%] Linking CXX executable ebpf-common-tests
[ 75%] Built target ebpfpub
[100%] Built target ebpf-common-tests
[trailofbits@localhost build]$ cmake --build . --target run-ebpf-common-tests
[ 15%] Built target utils
[ 61%] Built target ebpf
[ 96%] Built target ebpf-common-tests
Scanning dependencies of target run-ebpf-common-tests
[100%] Running ebpf-common tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ebpf-common-tests is a Catch v2.11.0 host application.
Run with -? for options
-------------------------------------------------------------------------------
Setting values
-------------------------------------------------------------------------------
/home/trailofbits/Desktop/ebpfpub/libraries/ebpf-common/src/tests/bpfmap.cpp:26
...............................................................................
/home/trailofbits/Desktop/ebpfpub/libraries/ebpf-common/src/tests/bpfmap.cpp:29: FAILED:
REQUIRE( bpf_hash_map_exp.succeeded() )
with expansion:
false
-------------------------------------------------------------------------------
Scenario: The TypedBPFMap class can instantiate and manipulate typed BPF hash
maps
Given: a typed BPF hash map
-------------------------------------------------------------------------------
/home/trailofbits/Desktop/ebpfpub/libraries/ebpf-common/src/tests/typedbpfmap.cpp:25
...............................................................................
/home/trailofbits/Desktop/ebpfpub/libraries/ebpf-common/src/tests/typedbpfmap.cpp:29: FAILED:
REQUIRE( bpf_hash_map_exp.succeeded() )
with expansion:
false
===============================================================================
test cases: 7 | 5 passed | 2 failed
assertions: 106 | 104 passed | 2 failed
I think this is the same issue we've found on the CI. The ebpf-common tests need to be run as root.