From 7d36fd9a1e070e2d83f8b63e44faae587a138686 Mon Sep 17 00:00:00 2001 From: Olivier Lemasle Date: Tue, 1 Jun 2021 13:44:38 +0200 Subject: [PATCH] Restrict running tests dependent of x86_64 These 5 tests fail with the error "This test requires x86_64 support." when executed on another architecture. --- cranelift/frontend/src/frontend.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cranelift/frontend/src/frontend.rs b/cranelift/frontend/src/frontend.rs index 3b76a47450..8b68e6f62d 100644 --- a/cranelift/frontend/src/frontend.rs +++ b/cranelift/frontend/src/frontend.rs @@ -969,6 +969,7 @@ mod tests { } #[test] + #[cfg_attr(not(target_arch = "x86_64"), ignore)] fn memcpy() { use core::str::FromStr; use cranelift_codegen::{isa, settings}; @@ -1031,6 +1032,7 @@ block0: } #[test] + #[cfg_attr(not(target_arch = "x86_64"), ignore)] fn small_memcpy() { use core::str::FromStr; use cranelift_codegen::{isa, settings}; @@ -1098,6 +1100,7 @@ block0: } #[test] + #[cfg_attr(not(target_arch = "x86_64"), ignore)] fn not_so_small_memcpy() { use core::str::FromStr; use cranelift_codegen::{isa, settings}; @@ -1168,6 +1171,7 @@ block0: } #[test] + #[cfg_attr(not(target_arch = "x86_64"), ignore)] fn small_memset() { use core::str::FromStr; use cranelift_codegen::{isa, settings}; @@ -1221,6 +1225,7 @@ block0: } #[test] + #[cfg_attr(not(target_arch = "x86_64"), ignore)] fn not_so_small_memset() { use core::str::FromStr; use cranelift_codegen::{isa, settings};