Skip to content

Commit

Permalink
Fix a test on wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 8, 2024
1 parent d1bf396 commit 63f061c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test-libz-rs-sys/src/deflate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,6 @@ mod fuzz_based_tests {
}

#[test]
#[cfg_attr(target_family = "wasm", ignore = "zlib-ng compresses differently on wasm")]
fn hash_calc_difference() {
// exposed an issue in the crc32 acle hash calc where the incorrect instruction was used.
// a different hash function changes which match is found first in the hash map, and
Expand Down Expand Up @@ -1847,7 +1846,7 @@ mod fuzz_based_tests {
mem_level: 2,
strategy: Strategy::Default,
},
if cfg!(target_arch = "s390x") {
if cfg!(any(target_arch = "s390x", target_family = "wasm")) {
output_s390x
} else {
output_other
Expand Down

0 comments on commit 63f061c

Please sign in to comment.