Re: [PATCH 2/3] rust: pin-init: examples: pthread_mutex: disable the main test for miri
From: Benno Lossin
Date: Mon May 26 2025 - 04:20:50 EST
On Fri May 23, 2025 at 8:26 PM CEST, Alice Ryhl wrote:
> On Fri, May 23, 2025 at 02:54:12PM +0200, Benno Lossin wrote:
>> From: Benno Lossin <benno.lossin@xxxxxxxxx>
>>
>> `miri` takes a long time to execute the test, so disable it.
>>
>> Link: https://github.com/Rust-for-Linux/pin-init/pull/50/commits/e717a9eec85024c11e79e8bd9dcb664ad0de8f94
>> Signed-off-by: Benno Lossin <lossin@xxxxxxxxxx>
>
> I usually recommend ignoring tests rather than cfg'ing them out
> entirely.
>
> #[cfg_attr(miri, ignore)]
Oh I didn't know you can do that!
This patch sadly already is in the main branch and I have the policy
that I don't rebase that one, so I'll make another patch to fix that.
(and in the future I'll wait with merging for reviews on the list :)
---
Cheers,
Benno