From 508b7545a1bc8322e9bd2f0921384a2c743f0d07 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 3 Apr 2013 15:37:43 +0200 Subject: 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. --- git-coverage | 4 ++-- 1 file 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: -- cgit v1.2.3