Skip to content

Don't test panic=unwind in panic_main.rs on Fuchsia #144073

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Jul 17, 2025

@Enselic added a few new test conditions to tests/ui/panics/panic-main.rs in #142304, but it is unfortunately causing the test to fail for Fuchsia with the panic=unwind modes since we compile Rust for Fuchsia with panic=abort. This patch just ignores the test for Fuchsia.

Note that this test might also need to filter out a few other platforms, since another panicking test we exclude from Fuchsia https://github.com/rust-lang/rust/blob/master/tests/ui/panics/runtime-switch.rs also excludes running on msvc, android, openbsd, and wasm, but I'm not familiar with those platforms so I didn't want to add them here.

cc @compile-errors, who reviewed the initial PR

@rustbot
Copy link
Collaborator

rustbot commented Jul 17, 2025

Failed to set assignee to compile-errors: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 17, 2025
@lqd
Copy link
Member

lqd commented Jul 17, 2025

r? lqd

r=me when CI is green close
@bors delegate+
@bors rollup

@bors
Copy link
Collaborator

bors commented Jul 17, 2025

✌️ @erickt, you can now approve this pull request!

If @lqd told you to "r=me" after making some further change, please make that change, then do @bors r=@lqd

@lqd
Copy link
Member

lqd commented Jul 17, 2025

actually, I think we should just mark them as needs-unwind instead of ignoring for fuchsia, and then we can run other builders to test it out. No need to make multiple changes to ignore some platform after the other imo.

@erickt
Copy link
Contributor Author

erickt commented Jul 17, 2025

@lqd good idea, I'll switch to needs-unwind.

Only run the panic=unwind tests on platforms that support unwinding.
@erickt erickt force-pushed the ignore-test-on-fuchsia branch from 1283116 to 0a71873 Compare July 17, 2025 15:42
@erickt
Copy link
Contributor Author

erickt commented Jul 17, 2025

@bors r=@lqd

@bors
Copy link
Collaborator

bors commented Jul 17, 2025

📌 Commit 0a71873 has been approved by lqd

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 17, 2025
jhpratt added a commit to jhpratt/rust that referenced this pull request Jul 18, 2025
Don't test panic=unwind in panic_main.rs on Fuchsia

`@Enselic` added a few new test conditions to tests/ui/panics/panic-main.rs in rust-lang#142304, but it is unfortunately causing the test to fail for Fuchsia with the `panic=unwind` modes since we compile Rust for Fuchsia with `panic=abort`. This patch just ignores the test for Fuchsia.

Note that this test might also need to filter out a few other platforms, since another panicking test we exclude from Fuchsia https://github.com/rust-lang/rust/blob/master/tests/ui/panics/runtime-switch.rs also excludes running on msvc, android, openbsd, and wasm, but I'm not familiar with those platforms so I didn't want to add them here.

cc `@compile-errors,` who reviewed the initial PR
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jul 18, 2025
Don't test panic=unwind in panic_main.rs on Fuchsia

``@Enselic`` added a few new test conditions to tests/ui/panics/panic-main.rs in rust-lang#142304, but it is unfortunately causing the test to fail for Fuchsia with the `panic=unwind` modes since we compile Rust for Fuchsia with `panic=abort`. This patch just ignores the test for Fuchsia.

Note that this test might also need to filter out a few other platforms, since another panicking test we exclude from Fuchsia https://github.com/rust-lang/rust/blob/master/tests/ui/panics/runtime-switch.rs also excludes running on msvc, android, openbsd, and wasm, but I'm not familiar with those platforms so I didn't want to add them here.

cc ``@compile-errors,`` who reviewed the initial PR
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jul 18, 2025
Don't test panic=unwind in panic_main.rs on Fuchsia

```@Enselic``` added a few new test conditions to tests/ui/panics/panic-main.rs in rust-lang#142304, but it is unfortunately causing the test to fail for Fuchsia with the `panic=unwind` modes since we compile Rust for Fuchsia with `panic=abort`. This patch just ignores the test for Fuchsia.

Note that this test might also need to filter out a few other platforms, since another panicking test we exclude from Fuchsia https://github.com/rust-lang/rust/blob/master/tests/ui/panics/runtime-switch.rs also excludes running on msvc, android, openbsd, and wasm, but I'm not familiar with those platforms so I didn't want to add them here.

cc ```@compile-errors,``` who reviewed the initial PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants