Skip to content

Commit a8c2a9d

Browse files
committed
Skip test case on target which supports an ABI but we expect an error
1 parent 0cef57e commit a8c2a9d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// The unsupported target error (E0570) does not trigger on aarch64 or arm targets
2+
// -> so we skip this test for them
3+
//@ ignore-aarch64
4+
//@ ignore-arm
5+
16
// gate-test-abi_c_cmse_nonsecure_call
27
fn main() {
38
let non_secure_function = unsafe {

tests/ui/cmse-nonsecure/cmse-nonsecure-call/gate_test.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0658]: C-cmse-nonsecure-call ABI is experimental and subject to change
2-
--> $DIR/gate_test.rs:4:46
2+
--> $DIR/gate_test.rs:9:46
33
|
44
LL | core::mem::transmute::<usize, extern "C-cmse-nonsecure-call" fn(i32, i32, i32, i32) -> i32>(
55
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | core::mem::transmute::<usize, extern "C-cmse-nonsecure-call" fn(i32
99
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1010

1111
error[E0570]: `"C-cmse-nonsecure-call"` is not a supported ABI for the current target
12-
--> $DIR/gate_test.rs:4:39
12+
--> $DIR/gate_test.rs:9:39
1313
|
1414
LL | core::mem::transmute::<usize, extern "C-cmse-nonsecure-call" fn(i32, i32, i32, i32) -> i32>(
1515
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)