You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ 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 functionend 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
The text was updated successfully, but these errors were encountered:
在 osx 下无法正常执行 lcov
The text was updated successfully, but these errors were encountered: