ebpfpub icon indicating copy to clipboard operation
ebpfpub copied to clipboard

Failing tests on CentOS 8

Open mike-myers-tob opened this issue 5 years ago • 1 comments

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

mike-myers-tob avatar Oct 15 '20 01:10 mike-myers-tob

I think this is the same issue we've found on the CI. The ebpf-common tests need to be run as root.

Smjert avatar Apr 12 '22 12:04 Smjert