]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
rust: pin-init: examples: pthread_mutex: disable the main test for miri
authorBenno Lossin <benno.lossin@proton.me>
Fri, 23 May 2025 12:54:12 +0000 (14:54 +0200)
committerBenno Lossin <lossin@kernel.org>
Wed, 11 Jun 2025 19:13:56 +0000 (21:13 +0200)
`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 <lossin@kernel.org>
rust/pin-init/examples/pthread_mutex.rs

index c709dabba7eb64f474023a0b90f7446d5cfd1961..6c4d18238956b6af37e24f41d6e4112fd763d96a 100644 (file)
@@ -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)))]
     {