From b78fa6ba1caa88454039e97a84883eef9e1f6e1e Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Sun, 14 Sep 2025 15:40:06 +0200 Subject: [PATCH] ASIF is available only starting from macOS 26 (Tahoe) (#1096) * ASIF is available only starting from macOS 26 (Tahoe) * Remove testRawFormatIsAlwaysSupported() test * Fix testASIFFormatSupport() test to check for macOS 26+ --- Sources/tart/DiskImageFormat.swift | 2 +- Tests/TartTests/DiskImageFormatTests.swift | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Sources/tart/DiskImageFormat.swift b/Sources/tart/DiskImageFormat.swift index 36b6641..7ebd268 100644 --- a/Sources/tart/DiskImageFormat.swift +++ b/Sources/tart/DiskImageFormat.swift @@ -21,7 +21,7 @@ enum DiskImageFormat: String, CaseIterable, Codable { case .raw: return true case .asif: - if #available(macOS 15, *) { + if #available(macOS 26, *) { return true } else { return false diff --git a/Tests/TartTests/DiskImageFormatTests.swift b/Tests/TartTests/DiskImageFormatTests.swift index bc78a4d..a4e59a9 100644 --- a/Tests/TartTests/DiskImageFormatTests.swift +++ b/Tests/TartTests/DiskImageFormatTests.swift @@ -2,13 +2,9 @@ import XCTest @testable import tart final class DiskImageFormatTests: XCTestCase { - func testRawFormatIsAlwaysSupported() throws { - XCTAssertTrue(DiskImageFormat.raw.isSupported) - } - func testASIFFormatSupport() throws { - // ASIF should be supported on macOS 15+ - if #available(macOS 15, *) { + // ASIF should be supported on macOS 26+ + if #available(macOS 26, *) { XCTAssertTrue(DiskImageFormat.asif.isSupported) } else { XCTAssertFalse(DiskImageFormat.asif.isSupported)