forked from gcovr/gcovr
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: incorrect path for header can still generate
Fixes gcovr#271
- Loading branch information
Showing
14 changed files
with
1,485 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
all: | ||
make -C subfolder | ||
|
||
run: txt xml html sonarqube json | ||
|
||
txt: | ||
./subfolder/subfolder/testcase | ||
$(GCOVR) -d -o coverage.txt | ||
|
||
xml: | ||
./subfolder/subfolder/testcase | ||
$(GCOVR) -d -x -o coverage.xml | ||
|
||
html: | ||
./subfolder/subfolder/testcase | ||
$(GCOVR) -d --html-details -o coverage.html | ||
|
||
sonarqube: | ||
./subfolder/subfolder/testcase | ||
$(GCOVR) -d --sonarqube sonarqube.xml | ||
|
||
json: | ||
# pass | ||
|
||
clean: | ||
make -C subfolder clean | ||
rm -f coverage.txt coverage.xml coverage*.html sonarqube.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A subfolder includes pattern that causes include header file has a incorrect relative path in .gcov file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
int foo(); | ||
inline int bar() { | ||
return 1; | ||
} |
Oops, something went wrong.