Commit e00d5dd48b2e0d681bb49c5cae3291b39675f40d
1 parent
8b904c83
Experimental: add --exclude-unreachable-branches to gcovr
Showing
2 changed files
with
2 additions
and
2 deletions
Makefile.am
| @@ -93,7 +93,7 @@ cppncss: | @@ -93,7 +93,7 @@ cppncss: | ||
| 93 | # Add coverage rule | 93 | # Add coverage rule |
| 94 | coverage: | 94 | coverage: |
| 95 | @if type gcovr >/dev/null 2>&1; then \ | 95 | @if type gcovr >/dev/null 2>&1; then \ |
| 96 | - gcovr -r . -x -o coverage-report-cxx.xml; \ | 96 | + gcovr -r . -x --exclude-unreachable-branches -o coverage-report-cxx.xml; \ |
| 97 | else \ | 97 | else \ |
| 98 | echo "gcovr script not found in PATH."; \ | 98 | echo "gcovr script not found in PATH."; \ |
| 99 | fi; \ | 99 | fi; \ |
src/ctbin/ctbin.cpp
| @@ -62,7 +62,7 @@ ctbin::ctbin(void) : ctool(CTBIN_NAME, CTBIN_VERSION) | @@ -62,7 +62,7 @@ ctbin::ctbin(void) : ctool(CTBIN_NAME, CTBIN_VERSION) | ||
| 62 | 62 | ||
| 63 | // Return | 63 | // Return |
| 64 | return; | 64 | return; |
| 65 | -} | 65 | +} // GCOV_EXCL_LINE |
| 66 | 66 | ||
| 67 | 67 | ||
| 68 | /***********************************************************************//** | 68 | /***********************************************************************//** |