Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Fix code coverage #187

Merged
merged 1 commit into from
Mar 25, 2021
Merged

Fix code coverage #187

merged 1 commit into from
Mar 25, 2021

Conversation

MathieuBordere
Copy link
Contributor

@MathieuBordere MathieuBordere commented Mar 25, 2021

__gcov_flush() is normally called by the exit handlers that are called in response to exit, exit however was causing hangs on arm64 and ppc64le, and was replaced with _exit in munit. Because _exit doesn't call exit handlers, we need to call __gcov_flush() ourselves when compiling with code coverage enabled.

edit: Will just double-check if ASAN still works as expected with the exit --> _exit change ASAN still works

@MathieuBordere MathieuBordere marked this pull request as draft March 25, 2021 13:40
@MathieuBordere MathieuBordere force-pushed the fix_coverage branch 2 times, most recently from edb1cab to fd7ee3e Compare March 25, 2021 14:38
@MathieuBordere MathieuBordere marked this pull request as ready for review March 25, 2021 14:39
@MathieuBordere MathieuBordere marked this pull request as draft March 25, 2021 14:41
@MathieuBordere MathieuBordere marked this pull request as ready for review March 25, 2021 14:52
@MathieuBordere MathieuBordere changed the title Fix coverage Fix code coverage Mar 25, 2021
@stgraber stgraber merged commit df02b56 into canonical:master Mar 25, 2021
@MathieuBordere MathieuBordere deleted the fix_coverage branch December 9, 2022 10:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants