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
ifnotsource_file_path.startswith(os.path.pardir+os.path.sep) and \
os.path.dirname(source_file_path):
the_root=abs_root
else:
the_root=root
source_file_path=os.path.abspath(
os.path.join(the_root, source_file_path))
The value of source_file_path should be "/home/travis/build/lc-soft/LCUI/src/gui/widget/canvas.c", not "/home/travis/build/lc-soft/LCUI/widget/canvas.c".
The path of the source file recorded in the gcov file is relative to the Makefile, maybe you need to modify the file path generation rules, like this pseudo code:
travis-ci log: https://travis-ci.org/lc-soft/LCUI/jobs/644692385
Related code:
cpp-coveralls/cpp_coveralls/coverage.py
Lines 430 to 445 in ff7af7e
The value of
source_file_path
should be"/home/travis/build/lc-soft/LCUI/src/gui/widget/canvas.c"
, not"/home/travis/build/lc-soft/LCUI/widget/canvas.c"
.The gcov file content looks like this:
The path of the source file recorded in the gcov file is relative to the Makefile, maybe you need to modify the file path generation rules, like this pseudo code:
I tried using the gcov command manually, The file list now looks like this:
Using the following command will successfully create the
./src/thread/pthread.c.gcov
file,The text was updated successfully, but these errors were encountered: