From 75ca36716121c4e84cc956f1b7f41dbaffc53dd8 Mon Sep 17 00:00:00 2001 From: Folkert Date: Fri, 9 Aug 2024 16:59:44 +0200 Subject: [PATCH] gate the `crc32_hash_calc` test on x86, x86_64 and aarch64 in particular this excludes powerpc, which fedora builds for --- zlib-rs/src/deflate/hash_calc.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zlib-rs/src/deflate/hash_calc.rs b/zlib-rs/src/deflate/hash_calc.rs index 57b50379..b260bcb5 100644 --- a/zlib-rs/src/deflate/hash_calc.rs +++ b/zlib-rs/src/deflate/hash_calc.rs @@ -163,6 +163,10 @@ mod tests { use super::*; #[test] + #[cfg_attr( + any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64"), + ignore = "no crc32 hardware support on this platform" + )] fn crc32_hash_calc() { assert_eq!(Crc32HashCalc::hash_calc(0, 807411760), 2423125009); assert_eq!(Crc32HashCalc::hash_calc(0, 540024864), 1452438466);