Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8e698a4

Browse files
committedMay 27, 2024
Make more of the test suite run on Mac Catalyst
This adds the `only-apple`/`ignore-apple` compiletest directive, and uses that basically everywhere instead of `only-macos`/`ignore-macos`. Some of the updates in `run-make` are a bit redundant, as they use `ignore-cross-compile` and won't run on iOS - but using Apple in these is still more correct, so I've made that change anyhow.
1 parent 6ac7fe7 commit 8e698a4

File tree

41 files changed

+97
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+97
-92
lines changed
 

‎tests/ui/intrinsics/intrinsic-alignment.rs

+15-14
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,21 @@ mod rusti {
1010
}
1111
}
1212

13-
#[cfg(any(target_os = "android",
14-
target_os = "dragonfly",
15-
target_os = "emscripten",
16-
target_os = "freebsd",
17-
target_os = "fuchsia",
18-
target_os = "hurd",
19-
target_os = "illumos",
20-
target_os = "linux",
21-
target_os = "macos",
22-
target_os = "netbsd",
23-
target_os = "openbsd",
24-
target_os = "solaris",
25-
target_os = "vxworks",
26-
target_os = "nto",
13+
#[cfg(any(
14+
target_os = "android",
15+
target_os = "dragonfly",
16+
target_os = "emscripten",
17+
target_os = "freebsd",
18+
target_os = "fuchsia",
19+
target_os = "hurd",
20+
target_os = "illumos",
21+
target_os = "linux",
22+
target_os = "netbsd",
23+
target_os = "openbsd",
24+
target_os = "solaris",
25+
target_os = "vxworks",
26+
target_os = "nto",
27+
target_vendor = "apple",
2728
))]
2829
mod m {
2930
#[cfg(target_arch = "x86")]

‎tests/ui/issues/issue-45731.rs

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22
#![allow(unused_variables)]
33
//@ compile-flags:--test -g
44

5-
#[cfg(target_os = "macos")]
5+
#[cfg(target_vendor = "apple")]
66
#[test]
77
fn simple_test() {
8-
use std::{env, panic, fs};
8+
use std::{env, fs, panic};
99

1010
// Find our dSYM and replace the DWARF binary with an empty file
1111
let mut dsym_path = env::current_exe().unwrap();
1212
let executable_name = dsym_path.file_name().unwrap().to_str().unwrap().to_string();
1313
assert!(dsym_path.pop()); // Pop executable
1414
dsym_path.push(format!("{}.dSYM/Contents/Resources/DWARF/{0}", executable_name));
1515
{
16-
let file = fs::OpenOptions::new().read(false).write(true).truncate(true).create(false)
17-
.open(&dsym_path).unwrap();
16+
let file = fs::OpenOptions::new()
17+
.read(false)
18+
.write(true)
19+
.truncate(true)
20+
.create(false)
21+
.open(&dsym_path)
22+
.unwrap();
1823
}
1924

2025
env::set_var("RUST_BACKTRACE", "1");
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.