Skip to content

Commit bd76e04

Browse files
authored
Merge pull request #2022 from rjmansfield/test-skip-clang-header-min-access
Skip testEmitClangHeaderMinAccess when frontend doesn't support it.
2 parents 659e237 + 9eeda12 commit bd76e04

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)