Skip to content

Commit

Permalink
Only run test on newer Xcode versions
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Apr 10, 2024
1 parent 27bcdc4 commit b1dc1e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,15 @@ fn clang_apple_tvsimulator() {
#[cfg(target_os = "macos")]
#[test]
fn clang_apple_visionos() {
// Only run this test if visionOS is available on the host machine
let output = std::process::Command::new("xcrun")
.args(["--show-sdk-version", "--sdk", "xros"])
.output()
.unwrap();
if !output.status.success() {
return;
}

let test = Test::clang();
test.gcc()
.__set_env("XROS_DEPLOYMENT_TARGET", "1.0")
Expand Down

0 comments on commit b1dc1e2

Please sign in to comment.