Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 osx 下无法正常执行 lcov #21

Open
MRNIU opened this issue Nov 8, 2023 · 0 comments
Open

在 osx 下无法正常执行 lcov #21

MRNIU opened this issue Nov 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@MRNIU
Copy link
Member

MRNIU commented Nov 8, 2023

在 osx 下无法正常执行 lcov

➜  build git:(main) ✗ make coverage
[ 86%] Built target SimplePhysicsEngine-static
[ 90%] Built target gtest
[ 95%] Built target gtest_main
[100%] Built target unit_test
Test project /Users/nzh/Documents/SimplePhysicsEngine/build/test
    Start 1: example.示例
1/1 Test #1: example.示例 ...................   Passed    0.11 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.12 sec
Generating coverage report ...
Capturing coverage data from /Users/nzh/Documents/SimplePhysicsEngine/build
geninfo cmd: '/usr/local/Cellar/lcov/2.0/bin/geninfo /Users/nzh/Documents/SimplePhysicsEngine/build --output-filename /Users/nzh/Documents/SimplePhysicsEngine/build/coverage/coverage.info --base-directory /Users/nzh/Documents/SimplePhysicsEngine --exclude /Users/nzh/Documents/SimplePhysicsEngine/3rd/* --memory 0'
Found LLVM gcov version 15.0.0, which emulates gcov version 4.2.0
Using intermediate gcov format
Writing temporary data to /tmp/geninfo_datLui2
Scanning /Users/nzh/Documents/SimplePhysicsEngine/build for .gcda files ...
Found 1 data files in /Users/nzh/Documents/SimplePhysicsEngine/build
Processing /Users/nzh/Documents/SimplePhysicsEngine/build/test/unit_test/CMakeFiles/unit_test.dir/example.cpp.gcda
Excluded data for 6 files due to include/exclude options
geninfo: ERROR: "/Users/nzh/Documents/SimplePhysicsEngine/test/unit_test/example.cpp":0:  function __cxx_global_var_init found on line but no corresponding 'line' coverage data point.  Cannot derive function end line.
	(use "geninfo --ignore-errors inconsistent ..." to bypass this error)
make[3]: *** [coverage] Error 255
make[2]: *** [test/CMakeFiles/coverage.dir/all] Error 2
make[1]: *** [test/CMakeFiles/coverage.dir/rule] Error 2
make: *** [coverage] Error 2
@MRNIU MRNIU added the bug Something isn't working label Nov 8, 2023
@MRNIU MRNIU moved this to Todo in SimplePhysicsEngine Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant