From 36041cf66847373c7c1b57fba178ad757361f50b Mon Sep 17 00:00:00 2001 From: Charles Hu Date: Tue, 3 Sep 2024 12:49:57 -0700 Subject: [PATCH] ProcessInfoTests.testOperatingSystemIsAtLeastVersion should not run on visionOS resolves: rdar://134731230 --- Tests/FoundationEssentialsTests/ProcessInfoTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/FoundationEssentialsTests/ProcessInfoTests.swift b/Tests/FoundationEssentialsTests/ProcessInfoTests.swift index 28c153bea..a9dba5b6d 100644 --- a/Tests/FoundationEssentialsTests/ProcessInfoTests.swift +++ b/Tests/FoundationEssentialsTests/ProcessInfoTests.swift @@ -138,7 +138,7 @@ final class ProcessInfoTests : XCTestCase { OperatingSystemVersion(majorVersion: 1, minorVersion: 0, patchVersion: 0) ), "ProcessInfo thinks we are on watchOS 1") - #elseif os(macOS) || os(iOS) + #elseif os(macOS) || (os(iOS) && !os(visionOS)) XCTAssertTrue(ProcessInfo.processInfo .isOperatingSystemAtLeast( OperatingSystemVersion(majorVersion: 6, minorVersion: 12, patchVersion: 0)