Skip to content

Commit 9eeda12

Browse files
committed
Skip testEmitClangHeaderMinAccess when frontend doesn't support it.
1 parent 8ba4292 commit 9eeda12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7988,6 +7988,9 @@ final class SwiftDriverTests: XCTestCase {
79887988
var driver = try Driver(args: [
79897989
"swiftc", "-emit-clang-header-path", "path/to/header", "-emit-clang-header-min-access", "public", "-typecheck", "test.swift"
79907990
])
7991+
guard driver.isFrontendArgSupported(.emitClangHeaderMinAccess) else {
7992+
throw XCTSkip("Skipping: compiler does not support '-emit-clang-header-min-access'")
7993+
}
79917994
let jobs = try driver.planBuild().removingAutolinkExtractJobs()
79927995
XCTAssertEqual(jobs.count, 2)
79937996
try XCTAssertJobInvocationMatches(jobs[0], .flag("-emit-clang-header-min-access"), .flag("public"))

0 commit comments

Comments
 (0)