Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Run pytest with G_DEBUG=fatal-criticals #186

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smcv
Copy link
Contributor

@smcv smcv commented Feb 10, 2025

This ensures that we crash out at any sign of undefined behaviour. This is the default for GLib's own GTest framework, but not for other test frameworks like pytest.

Note that we cannot use fatal-warnings (which would be the default for GTest) because at least one test-case for the inputcapture portal emulates a faulty portal implementation, which libportal will log as a g_warning().

This ensures that we crash out at any sign of undefined behaviour. This
is the default for GLib's own GTest framework, but not for other test
frameworks like pytest.

Note that we cannot use fatal-warnings (which would be the default for
GTest) because at least one test-case for the inputcapture portal emulates
a faulty portal implementation, which libportal will log as a g_warning().

Signed-off-by: Simon McVittie <[email protected]>
@smcv smcv added the enhancement New feature or request label Feb 10, 2025
@smcv
Copy link
Contributor Author

smcv commented Feb 10, 2025

CI failure is #187, I don't think that's related to what I changed in this PR.

@smcv smcv marked this pull request as draft February 10, 2025 00:48
@smcv
Copy link
Contributor Author

smcv commented Feb 10, 2025

Actually it looks as though some of the tests might be triggering criticals under normal circumstances. I think that's a bug (the point of critical warnings is that they're ... critical) but it means we can't apply this just yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant