@@ -391,9 +391,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
391
391
392
392
let checkForLinkLibrary = { ( info: ModuleInfo , linkName: String , isFramework: Bool , shouldForceLoad: Bool ) in
393
393
let linkLibraries = try XCTUnwrap ( info. linkLibraries)
394
- XCTAssertEqual ( linkLibraries. count, 1 )
395
- let linkLibrary = try XCTUnwrap ( linkLibraries. first)
396
- XCTAssertEqual ( linkLibrary. linkName, linkName)
394
+ let linkLibrary = try XCTUnwrap ( linkLibraries. first { $0. linkName == linkName } )
397
395
XCTAssertEqual ( linkLibrary. isFramework, isFramework)
398
396
XCTAssertEqual ( linkLibrary. shouldForceLoad, shouldForceLoad)
399
397
}
@@ -2090,9 +2088,11 @@ final class ExplicitModuleBuildTests: XCTestCase {
2090
2088
XCTAssertTrue ( contents. contains ( " \" G \" [style=bold, color=orange " ) )
2091
2089
XCTAssertTrue ( contents. contains ( " \" E \" [style=bold, color=orange, style=filled " ) )
2092
2090
XCTAssertTrue ( contents. contains ( " \" C (C) \" [style=bold, color=lightskyblue, style=filled " ) )
2093
- XCTAssertTrue ( contents. contains ( " \" Swift \" [style=bold, color=orange, style=filled " ) )
2091
+ XCTAssertTrue ( contents. contains ( " \" Swift \" [style=bold, color=orange, style=filled " ) ||
2092
+ contents. contains ( " \" Swift (Prebuilt) \" [style=bold, color=darkorange3, style=filled " ) )
2094
2093
XCTAssertTrue ( contents. contains ( " \" SwiftShims (C) \" [style=bold, color=lightskyblue, style=filled " ) )
2095
- XCTAssertTrue ( contents. contains ( " \" Swift \" -> \" SwiftShims (C) \" [color=black]; " ) )
2094
+ XCTAssertTrue ( contents. contains ( " \" Swift \" -> \" SwiftShims (C) \" [color=black]; " ) ||
2095
+ contents. contains ( " \" Swift (Prebuilt) \" -> \" SwiftShims (C) \" [color=black]; " ) )
2096
2096
}
2097
2097
}
2098
2098
@@ -2237,7 +2237,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
2237
2237
let moduleCachePath = path. appending ( component: " ModuleCache " )
2238
2238
try localFileSystem. createDirectory ( moduleCachePath)
2239
2239
let main = path. appending ( component: " testTraceDependency.swift " )
2240
- try localFileSystem. writeFileContents ( main, bytes:
2240
+ try localFileSystem. writeFileContents ( main, bytes:
2241
2241
"""
2242
2242
import C; \
2243
2243
import E; \
0 commit comments