Skip to content

Commit

Permalink
gate the crc32_hash_calc test on x86, x86_64 and aarch64
Browse files Browse the repository at this point in the history
in particular this excludes powerpc, which fedora builds for
  • Loading branch information
folkertdev committed Aug 9, 2024
1 parent 62b8703 commit 75ca367
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zlib-rs/src/deflate/hash_calc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 75ca367

Please sign in to comment.