Skip to content

Commit 7bae787

Browse files
authored
Merge pull request #599 from artemcm/ASiliconDisable
Temporarily disable tests that fail on Apple Silicon CI.
2 parents e34cddb + fe28ea4 commit 7bae787

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

Tests/SwiftDriverTests/ExplicitModuleBuildTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,12 @@ final class ExplicitModuleBuildTests: XCTestCase {
754754
// We only care about prebuilt modules in macOS.
755755
#if os(macOS)
756756
func testPrebuiltModuleGenerationJobs() throws {
757+
#if arch(arm64)
758+
// Disabled on Apple Silicon
759+
// rdar://76609781
760+
throw XCTSkip()
761+
#endif
762+
757763
func getInputModules(_ job: Job) -> [String] {
758764
return job.inputs.map { input in
759765
return input.file.absolutePath!.parentDirectory.basenameWithoutExt

Tests/SwiftDriverTests/IntegrationTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ final class IntegrationTests: IntegrationTestCase {
131131
}
132132

133133
func testLitDriverValidationTests() throws {
134+
#if os(macOS) && arch(arm64)
135+
// Disabled on Apple Silicon
136+
// rdar://76609781
137+
throw XCTSkip()
138+
#endif
134139
guard ProcessEnv.vars.keys.contains("SWIFT_DRIVER_ENABLE_FAILING_INTEGRATION_TESTS") else {
135140
throw XCTSkip("Not all Driver validation-tests supported")
136141
}

Tests/SwiftDriverTests/JobExecutorTests.swift

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,13 @@ extension DarwinToolchain {
9090

9191
final class JobExecutorTests: XCTestCase {
9292
func testDarwinBasic() throws {
93-
#if os(macOS)
93+
#if os(macOS)
94+
#if arch(arm64)
95+
// Disabled on Apple Silicon
96+
// rdar://76609781
97+
throw XCTSkip()
98+
#endif
99+
94100
let executor = try SwiftDriverExecutor(diagnosticsEngine: DiagnosticsEngine(),
95101
processSet: ProcessSet(),
96102
fileSystem: localFileSystem,
@@ -362,6 +368,12 @@ final class JobExecutorTests: XCTestCase {
362368
}
363369

364370
func testSaveTemps() throws {
371+
#if os(macOS) && arch(arm64)
372+
// Disabled on Apple Silicon
373+
// rdar://76609781
374+
throw XCTSkip()
375+
#endif
376+
365377
do {
366378
try withTemporaryDirectory { path in
367379
let main = path.appending(component: "main.swift")

0 commit comments

Comments
 (0)