Skip to content

Commit b1dc1e2

Browse files
committed
Only run test on newer Xcode versions
1 parent 27bcdc4 commit b1dc1e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test.rs

+9
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,15 @@ fn clang_apple_tvsimulator() {
603603
#[cfg(target_os = "macos")]
604604
#[test]
605605
fn clang_apple_visionos() {
606+
// Only run this test if visionOS is available on the host machine
607+
let output = std::process::Command::new("xcrun")
608+
.args(["--show-sdk-version", "--sdk", "xros"])
609+
.output()
610+
.unwrap();
611+
if !output.status.success() {
612+
return;
613+
}
614+
606615
let test = Test::clang();
607616
test.gcc()
608617
.__set_env("XROS_DEPLOYMENT_TARGET", "1.0")

0 commit comments

Comments
 (0)