Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #3883 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

gcovr fails to send file name to gcov

Reported by: jan.ruzicka@… Owned by: jdsiiro
Priority: major Milestone:
Component: gcovr Version:
Keywords: Cc: wehart, jdsiiro


The gcovr (version 2.1) is not processing coverage information.

It does not pass the file name to the gcov (1).
(Seems that issue was introduced in change set [2521])

$ gcovr -vv --root=.
Scanning directory . for gcda files...
Found 3 files
Running gcov: 'gcov --branch-counts --branch-probabilities --preserve-paths /path/workspace/src' in '/path/workspace/src'
Running gcov: 'gcov --branch-counts --branch-probabilities --preserve-paths /path/workspace/src' in '/path/workspace/src'
Running gcov: 'gcov --branch-counts --branch-probabilities --preserve-paths /path/workspace/src' in '/path/workspace/src'
Gathered coveraged data for 0 files

File Lines Exec Cover Missing

TOTAL 0 0 --%

$ gcovr --root=. --xml
<?xml version="1.0" ?>
<!DOCTYPE coverage


<coverage branch-rate="0.0" line-rate="0.0">








gcovr.patch Download (531 bytes) - added by jan.ruzicka@… 8 years ago.
gcovr patch for gcov parameter

Change History

Changed 8 years ago by jan.ruzicka@…

gcovr patch for gcov parameter

comment:1 Changed 8 years ago by jdsiiro

  • Cc wehart, jdsiiro added; William E Hart <wehart@…>, John D Siirola <jdsiiro@…> removed

(fixing CC list)

comment:2 Changed 8 years ago by jdsiiro

Referenced in changeset [2555]:

Overhaul of gcovr's logic for determining gcc/g++'s original working directory. This resolves issues introduced in the original implementation of --object-directory (resolves #3872) and fixes #3883.

comment:3 Changed 8 years ago by jdsiiro

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [2555].


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.