From 9eeda12c320f12dbade310f0d1d7d57b2a4f9d09 Mon Sep 17 00:00:00 2001 From: Ryan Mansfield Date: Wed, 19 Nov 2025 11:37:56 -0500 Subject: [PATCH] Skip testEmitClangHeaderMinAccess when frontend doesn't support it. --- Tests/SwiftDriverTests/SwiftDriverTests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/SwiftDriverTests/SwiftDriverTests.swift b/Tests/SwiftDriverTests/SwiftDriverTests.swift index 756905fb7..c104951a2 100644 --- a/Tests/SwiftDriverTests/SwiftDriverTests.swift +++ b/Tests/SwiftDriverTests/SwiftDriverTests.swift @@ -7988,6 +7988,9 @@ final class SwiftDriverTests: XCTestCase { var driver = try Driver(args: [ "swiftc", "-emit-clang-header-path", "path/to/header", "-emit-clang-header-min-access", "public", "-typecheck", "test.swift" ]) + guard driver.isFrontendArgSupported(.emitClangHeaderMinAccess) else { + throw XCTSkip("Skipping: compiler does not support '-emit-clang-header-min-access'") + } let jobs = try driver.planBuild().removingAutolinkExtractJobs() XCTAssertEqual(jobs.count, 2) try XCTAssertJobInvocationMatches(jobs[0], .flag("-emit-clang-header-min-access"), .flag("public"))