Skip to content

Commit ba9daea

Browse files
committed
Make the tests fail when the CPU feature is not supported
1 parent 054696e commit ba9daea

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From 9da125288b5a787bb81d76d7e37c6fbf22552035 Mon Sep 17 00:00:00 2001
2+
From: Antoni Boucher <[email protected]>
3+
Date: Fri, 25 Nov 2022 11:44:39 -0500
4+
Subject: [PATCH] Make the tests fail when the CPU feature is not supported
5+
6+
---
7+
library/stdarch/crates/simd-test-macro/src/lib.rs | 1 +
8+
1 file changed, 1 insertion(+)
9+
10+
diff --git a/library/stdarch/crates/simd-test-macro/src/lib.rs b/library/stdarch/crates/simd-test-macro/src/lib.rs
11+
index 9d81a4c..d0002de 100644
12+
--- a/library/stdarch/crates/simd-test-macro/src/lib.rs
13+
+++ b/library/stdarch/crates/simd-test-macro/src/lib.rs
14+
@@ -114,6 +114,7 @@ pub fn simd_test(
15+
let v = unsafe { #name() };
16+
return v;
17+
} else {
18+
+ panic!("CPU feature unsupported.");
19+
::stdarch_test::assert_skip_test_ok(stringify!(#name));
20+
}
21+
22+
--
23+
2.26.2.7.g19db9cfb68.dirty
24+

0 commit comments

Comments
 (0)