-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fix tests using only-i686
to use the correct only-x86
directive
#90569
Conversation
We translate `i686` to `x86` which means tests marked as `only-i686` never ran. Update those tests to use `only-x86`.
(rust-highfive has picked a reviewer for you, use r? to override) |
Hm, how do we ensure new tests don't get added? I would have expected the panic! in that code to get triggered... maybe we can fix that as well? |
The panic isn't triggered because we do find the arch but in the calling code, it doesn't match the rust/src/tools/compiletest/src/header.rs Line 689 in 27143a9
ie:
|
Right, I guess, what I'm trying to get at is that it seems like we should error on such a test that can never run. I'm not sure I'm fully understanding, but perhaps we should add a panic whenever Alternatively, we could also call the equivalent of get_arch on the |
Right. I agree, ideally we would be able to detect an invalid We could certainly file an issue to improve compiletest though.
We also can't do that because some names are present as both keys and values in the mapping table ( |
Alright. r=me with an issue filed. Did you spot check the other mappings in the table to check we don't have extra tests like this (for non-i686)? |
Yes, I didn't see any other issues. @bors r=Mark-Simulacrum rollup |
📌 Commit 8c56ef0 has been approved by |
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#89942 (Reorder `widening_impl`s to make the doc clearer) - rust-lang#90569 (Fix tests using `only-i686` to use the correct `only-x86` directive) - rust-lang#90597 (Warn for variables that are no longer captured) - rust-lang#90623 (Remove more checks for LLVM < 12) - rust-lang#90626 (Properly register text_direction_codepoint_in_comment lint.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
We translate
i686
tox86
which means tests marked asonly-i686
never ran. Update those tests to use
only-x86
.We parse the
only-
architecture directive hererust/src/tools/compiletest/src/util.rs
Lines 160 to 168 in 27143a9
and we translate
i686
tox86
hererust/src/tools/compiletest/src/util.rs
Line 56 in 27143a9