Skip to content

Fix broken gcov invocation in make tests#129

Open
timblaktu wants to merge 1 commit into
willemt:masterfrom
timblaktu:fix/gcov-broken
Open

Fix broken gcov invocation in make tests#129
timblaktu wants to merge 1 commit into
willemt:masterfrom
timblaktu:fix/gcov-broken

Conversation

@timblaktu

Copy link
Copy Markdown

The tests target compiled all sources in a single gcc call, so .gcno files were named with the output binary prefix and gcov couldn't find them. Use per-file object compilation (via OBJECTS) consistent with the static/shared targets, and pass -o src to gcov so it finds the notes files. Also update GCOV_OUTPUT to clean src/.gc files.

Fixes #128

The tests target compiled all sources in a single gcc call, so .gcno
files were named with the output binary prefix and gcov couldn't find
them. Use per-file object compilation (via OBJECTS) consistent with the
static/shared targets, and pass -o src to gcov so it finds the notes
files. Also update GCOV_OUTPUT to clean src/*.gc* files.

Fixes willemt#128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"make tests" fails due to broken gcov invocation

1 participant