Skip to content

Commit dc27691

Browse files
authored
Merge pull request #866 from compnerd/disable-tests
SwiftDriverTests: disable some tests
2 parents 6b67e9f + ff041f6 commit dc27691

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Tests/SwiftDriverTests/ExplicitModuleBuildTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ private func pcmArgsEncodedRelativeModulePath(for moduleName: String, with pcmAr
163163
/// Test that for the given JSON module dependency graph, valid jobs are generated
164164
final class ExplicitModuleBuildTests: XCTestCase {
165165
func testModuleDependencyBuildCommandGeneration() throws {
166+
#if os(macOS)
166167
do {
167168
var driver = try Driver(args: ["swiftc", "-explicit-module-build",
168169
"-module-name", "testModuleDependencyBuildCommandGeneration",
@@ -216,6 +217,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
216217
}
217218
}
218219
}
220+
#endif
219221
}
220222

221223
func testModuleDependencyBuildCommandGenerationWithExternalFramework() throws {
@@ -305,6 +307,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
305307
/// Test generation of explicit module build jobs for dependency modules when the driver
306308
/// is invoked with -explicit-module-build
307309
func testExplicitModuleBuildJobs() throws {
310+
#if os(macOS)
308311
try withTemporaryDirectory { path in
309312
let main = path.appending(component: "testExplicitModuleBuildJobs.swift")
310313
try localFileSystem.writeFileContents(main) {
@@ -455,9 +458,11 @@ final class ExplicitModuleBuildTests: XCTestCase {
455458
}
456459
}
457460
}
461+
#endif
458462
}
459463

460464
func testImmediateModeExplicitModuleBuild() throws {
465+
#if os(macOS)
461466
try withTemporaryDirectory { path in
462467
let main = path.appending(component: "testExplicitModuleBuildJobs.swift")
463468
try localFileSystem.writeFileContents(main) {
@@ -584,6 +589,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
584589
}
585590
}
586591
}
592+
#endif
587593
}
588594

589595
func testExplicitModuleBuildEndToEnd() throws {

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,6 +2696,7 @@ final class SwiftDriverTests: XCTestCase {
26962696
}
26972697

26982698
func testClangTargetForExplicitModule() throws {
2699+
#if os(macOS)
26992700
// Check -clang-target is on by defualt when explicit module is on.
27002701
try withTemporaryDirectory { path in
27012702
let main = path.appending(component: "Foo.swift")
@@ -2729,6 +2730,7 @@ final class SwiftDriverTests: XCTestCase {
27292730
job.commandLine.contains(.flag("-clang-target"))
27302731
})
27312732
}
2733+
#endif
27322734
}
27332735

27342736
func testDisableClangTargetForImplicitModule() throws {

0 commit comments

Comments
 (0)