How does lcov decide when to use absolute paths versus relative paths?
I have an app
directory containing subdirectories for each of my product's shared libraries and subdirectories for several binaries. Something like this:
/home/user/app/libfoo/bar
/home/user/app/libfoo/baz
/home/user/app/libqux
/home/user/app/testsuite
/home/user/app/product
However, when run through lcov
and genhtml
, the directories are listed like this:
/home/user/app/libqux
/home/user/app/testsuite
/home/user/app/product
bar
baz
In other words, everything within one of my shared library directories uses a relative path, while everything else uses absolute paths. Why?
My invoction of lcov
and genhtml
is pretty straightforward:
cd ~/app
testsuite/run_tests
lcov --capture --directory . --output-file coverage.info --gcov-tool gcov-5 --no-external
genhtml coverage.info --output-directory coverage