Skip to content

Fix test_compiler_detection relation to missing/broken compilers #14661

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

Merged
merged 3 commits into from
Jun 5, 2025

Conversation

dcbaker
Copy link
Member

@dcbaker dcbaker commented May 29, 2025

No description provided.

@yselkowitz
Copy link

I can confirm that this patch on top of 1.8.1 fixes the test in question on ELN (the future RHEL 11), where gcc is the default compiler and ObjC is disabled.

@dcbaker dcbaker force-pushed the submit/fix-objc-detection branch from da7db7a to a07c18c Compare May 29, 2025 17:03
Which is a very large and complicated test function
@dcbaker dcbaker force-pushed the submit/fix-objc-detection branch from a07c18c to 9e4294f Compare June 5, 2025 17:12
dcbaker added 2 commits June 5, 2025 10:21
Add a few asserts for functions that could in theory return None, but if
they do something has gone *really* wrong with the test.
This wraps all of the compiler detections in this test case in
try/except blocks. These blocks will return a skipTest for Python >=
3.11 (where subTest and skipTest interact correctly), and continue if
they do not. For Meson CI runs they will fail the specific subtest,
which is also an improvement as it can help pinpoint exactly which
subtest failed.

Fixes: mesonbuild#14579
@dcbaker dcbaker force-pushed the submit/fix-objc-detection branch from 9e4294f to e297fa7 Compare June 5, 2025 17:21
@eli-schwartz eli-schwartz merged commit 75f79fc into mesonbuild:master Jun 5, 2025
30 checks passed
@dcbaker dcbaker deleted the submit/fix-objc-detection branch June 5, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants