From 27f82ae8ea2126a59171fe6a68356926d3287e8f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 29 May 2023 16:58:00 +0200 Subject: [PATCH] Ignore harmless test failures on 32-bit and big-endian architectures --- rust-aho-corasick.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rust-aho-corasick.spec b/rust-aho-corasick.spec index 384340b..18e8274 100644 --- a/rust-aho-corasick.spec +++ b/rust-aho-corasick.spec @@ -100,8 +100,18 @@ use the "std" feature of the "%{crate}" crate. %if %{with check} %check +%ifarch %{ix86} +# * ignore harmless test failure on 32-bit architectures: +# https://github.com/BurntSushi/aho-corasick/issues/116 +%cargo_test -- -- --skip ahocorasick::AhoCorasick::memory_usage +%elifarch s390x +# * ignore harmless test failure on big-endian architectures: +# https://github.com/BurntSushi/aho-corasick/issues/117 +%cargo_test -- -- --skip nfa::contiguous::tests::swar +%else %cargo_test %endif +%endif %changelog %autochangelog