g++ (Ubuntu 9.4.0-1ubuntu1~18.04) 9.4.0
gcov (Ubuntu 9.4.0-1ubuntu1~18.04) 9.4.0
lcov: LCOV version 1.13
- g++ -g -O0 --coverage main.cpp -o main
- ./main
- lcov -t "main" -o main.info -c -d . --gcov-tool gcov-9
The output:
Capturing coverage data from .
Found gcov version: 9.4.0
Scanning . for .gcda files ...
Found 1 data files in .
Processing main.gcda
geninfo: WARNING: /home/home/main.gcno: Overlong record at end of file!
geninfo: WARNING: cannot find an entry for main.cpp.gcov in .gcno file, skipping file!
Finished .info-file creation
- genhtml -o report main.info
The output:
genhtml: ERROR: no valid records found in tracefile main.info