selfjungle Just another WordPress weblog

18Mar/150

gcov

# usual gcov run:
rm -rf COVERAGE_DIR && mkdir COVERAGE_DIR
lcov --directory BUILD_DIR -z
RUN_EXECUTABLE
lcov --directory BUILD_DIR --capture -b SOURCE_DIR -o lcov.info
genhtml --frames --legend -o COVERAGE_DIR lcov.info


# gcc  & gcov version mismatch:
geninfo: ERROR: PATH/FILE.gcno: reached unexpected end of file

# executable and *.gcda files are created in the different build runs
# graph file has been compiled again after binaries built.
Processing FILE.gcda
PATH/FILE.gcda:stamp mismatch with graph file

$ hexdump -e '"%x\n"' -s8 -n4 myclass.gcda
7ef26ee7
$ hexdump -e '"%x\n"' -s8 -n4 myclass.gcno
7ef26ee7

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

 

No trackbacks yet.