about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-06-22 21:36:11 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-06-23 00:40:43 -0700
commitc72a6ad8f2653d8da38a28520b6c5a2d64aa7aa5 (patch)
treef6b5681c6d02530b5a3a1fe14b187f520a81809a
parent598e265d43db1ef980679d94702173b61de71c3f (diff)
downloadrust-c72a6ad8f2653d8da38a28520b6c5a2d64aa7aa5.tar.gz
rust-c72a6ad8f2653d8da38a28520b6c5a2d64aa7aa5.zip
test: ignore force-frame-pointers test on some targets
all of these currently force stronger frame pointers, and
currently the CLI does not override the target
-rw-r--r--src/tools/compiletest/src/header.rs2
-rw-r--r--tests/codegen/force-frame-pointers.rs7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs
index 5469b9f1a0a..82d80fcc19c 100644
--- a/src/tools/compiletest/src/header.rs
+++ b/src/tools/compiletest/src/header.rs
@@ -779,6 +779,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
     "ignore-haiku",
     "ignore-horizon",
     "ignore-i686-pc-windows-msvc",
+    "ignore-illumos",
     "ignore-ios",
     "ignore-linux",
     "ignore-lldb",
@@ -843,6 +844,7 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
     "ignore-x32",
     "ignore-x86",
     "ignore-x86_64",
+    "ignore-x86_64-apple-darwin",
     "ignore-x86_64-unknown-linux-gnu",
     "incremental",
     "known-bug",
diff --git a/tests/codegen/force-frame-pointers.rs b/tests/codegen/force-frame-pointers.rs
index dece633f831..88c918945d6 100644
--- a/tests/codegen/force-frame-pointers.rs
+++ b/tests/codegen/force-frame-pointers.rs
@@ -3,6 +3,13 @@
 //@ [NonLeaf] compile-flags: -Cforce-frame-pointers=non-leaf
 //@ compile-flags: -Zunstable-options
 //@ compile-flags: -C no-prepopulate-passes -Copt-level=0
+//@ [NonLeaf] ignore-illumos
+//@ [NonLeaf] ignore-openbsd
+//@ [NonLeaf] ignore-x86
+//@ [NonLeaf] ignore-x86_64-apple-darwin
+//@ [NonLeaf] ignore-windows-gnu
+//@ [NonLeaf] ignore-thumb
+// result is platform-dependent based on platform's frame pointer settings
 
 #![crate_type = "lib"]