From: Benno Lossin Date: Fri, 23 May 2025 12:54:12 +0000 (+0200) Subject: rust: pin-init: examples: pthread_mutex: disable the main test for miri X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2408678d700c4db6c54749a272d42a964f5f3418;p=users%2Fjedix%2Flinux-maple.git rust: pin-init: examples: pthread_mutex: disable the main test for miri `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 Link: https://lore.kernel.org/all/20250523125424.192843-3-lossin@kernel.org Signed-off-by: Benno Lossin --- diff --git a/rust/pin-init/examples/pthread_mutex.rs b/rust/pin-init/examples/pthread_mutex.rs index c709dabba7eb6..6c4d18238956b 100644 --- a/rust/pin-init/examples/pthread_mutex.rs +++ b/rust/pin-init/examples/pthread_mutex.rs @@ -139,7 +139,7 @@ mod pthread_mtx { } } -#[cfg_attr(test, test)] +#[cfg_attr(all(test, not(miri)), test)] fn main() { #[cfg(all(any(feature = "std", feature = "alloc"), not(windows)))] {