Skip to content

tests: Prevent gcov warnings spuriously failing test-history.sh - #6742

Merged
swick merged 1 commit into
flatpak:mainfrom
pwithnall:test-gcov-fail
Jul 27, 2026
Merged

swick merged 1 commit into
flatpak:mainfrom
pwithnall:test-gcov-fail

Conversation

@pwithnall

Copy link
Copy Markdown
Collaborator

If flatpak is built with code coverage enabled, libgcov sometimes helpfully emits messages in the output from programs under test.

If we’re strictly comparing the whole output of a program to an expected string, as test-history.sh does in these two places, this can cause spurious test failures.

Temporarily tell it to send its error messages to /dev/null as we don’t care about them for those tests.

If flatpak is built with code coverage enabled, libgcov sometimes
helpfully emits messages in the output from programs under test.

If we’re strictly comparing the whole output of a program to an expected
string, as `test-history.sh` does in these two places, this can cause
spurious test failures.

Temporarily tell it to send its error messages to `/dev/null` as we
don’t care about them for those tests.

Signed-off-by: Philip Withnall <[email protected]>
@swick
swick added this pull request to the merge queue Jul 27, 2026
Merged via the queue into flatpak:main with commit da47d3b Jul 27, 2026
11 checks passed
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.

3 participants