Skip to content

Conversation

@chriswailes
Copy link
Contributor

These tests rely on unwinding and will fail if built with panic-abort.

Motivation

The Rust toolchain for Android is built with panic-abort and these tests will fail without these changes.

Solution

Add a cfg annotation that only enables these tests if panic = "unwind".

@chriswailes chriswailes force-pushed the conditional-unwind-tests branch from 36ae52f to 1ca4230 Compare January 19, 2023 22:50
@Darksonn Darksonn added the A-tokio Area: The main tokio crate label Jan 20, 2023
Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! cfg(panic) doesn't work on our MSRV (it stabilized on 1.60), but we don't run tests on MSRV, so I think this is ok.

@Darksonn
Copy link
Contributor

Yeah, tests aren't subject to the MSRV.

@Darksonn Darksonn merged commit c90757f into tokio-rs:master Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio Area: The main tokio crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants