bpftime icon indicating copy to clipboard operation
bpftime copied to clipboard

[BUG] Unit test suite failed 2 test cases on Fedora Linux x86_6

Open agentzh opened this issue 1 year ago • 1 comments

When running the unit test suite of bpftime on Fedora Linux x86_64, I'm seeing 2 test cases failing consistently:

===============================================================================
test cases:   16 |   14 passed | 2 failed
assertions: 8385 | 8383 passed | 2 failed

The detailed errors for these 2 test cases are as following:

/home/agentzh/bpftime/runtime/unit-test/attach/test_function_address_resolve.cpp:26: FAILED:
  REQUIRE( addr == (void *)&malloc )
with expansion:
  0x00007f00edf33220 == 0x000000000040f1b0
with message:
  malloc addr resolved: 139641968865824

and also

/home/agentzh/bpftime/runtime/unit-test/tailcall/test_user_to_kernel_tailcall.cpp:64: FAILED:
  REQUIRE( prog_fd >= 0 )
with expansion:
  -1 >= 0

agentzh avatar Jan 27 '24 21:01 agentzh

OK, I can confirm that one of the test failure can be fixed by running make unit-test with sudo. Now only the test_function_address_resolve.cpp test failure remains.

agentzh avatar Jan 27 '24 22:01 agentzh

Seems the CI is working with the test fixed. See #192 and #161

yunwei37 avatar Aug 11 '24 10:08 yunwei37