diff options
author | Stef Walter <stefw@gnome.org> | 2013-04-03 15:37:43 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-04-03 15:38:56 +0200 |
commit | 508b7545a1bc8322e9bd2f0921384a2c743f0d07 (patch) | |
tree | bcc15c38712e7c2c9db4660023d9db859fa5fe66 | |
parent | c202bdf3cc7433c3ff8264f151015296fab1fc9d (diff) |
Don't limit ourselves to relative paths
./configure may have been called with an absolute path, and the
resulting srcdirs will contain absolute paths, which will end up
in the gcno files.
-rwxr-xr-x | git-coverage | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-coverage b/git-coverage index f14f744..b076886 100755 --- a/git-coverage +++ b/git-coverage @@ -315,7 +315,7 @@ class GccCoverage: resolve.append(gcno) no_gcda = False - cmd = ['gcov', '--preserve-paths', '--relative-only', '--no-output'] + cmd = ['gcov', '--preserve-paths', '--no-output'] for gcno in resolve: self._gcno_unresolved.remove(gcno) @@ -380,7 +380,7 @@ class GccCoverage: os.chdir(directory) gcovs = [] - cmd = ['gcov', '--preserve-paths', '--relative-only'] + cmd = ['gcov', '--preserve-paths'] for line in subprocess_lines(cmd + [gcno]): match = self._creating_re.match(line.strip()) if not match: |