@@ -339,6 +339,10 @@ final class ExplicitModuleBuildTests: XCTestCase {
339
339
try checkExplicitModuleBuildJob ( job: job, moduleId: . clang( " SwiftShims " ) ,
340
340
dependencyGraph: dependencyGraph)
341
341
}
342
+ else if relativeOutputPathFileName. starts ( with: " _SwiftConcurrencyShims- " ) {
343
+ try checkExplicitModuleBuildJob ( job: job, moduleId: . clang( " _SwiftConcurrencyShims " ) ,
344
+ dependencyGraph: dependencyGraph)
345
+ }
342
346
else {
343
347
XCTFail ( " Unexpected module dependency build job output: \( outputFilePath) " )
344
348
}
@@ -441,6 +445,10 @@ final class ExplicitModuleBuildTests: XCTestCase {
441
445
try checkExplicitModuleBuildJob ( job: job, moduleId: . clang( " SwiftShims " ) ,
442
446
dependencyGraph: dependencyGraph)
443
447
}
448
+ else if relativeOutputPathFileName. starts ( with: " _SwiftConcurrencyShims- " ) {
449
+ try checkExplicitModuleBuildJob ( job: job, moduleId: . clang( " _SwiftConcurrencyShims " ) ,
450
+ dependencyGraph: dependencyGraph)
451
+ }
444
452
else {
445
453
XCTFail ( " Unexpected module dependency build job output: \( outputFilePath) " )
446
454
}
@@ -977,10 +985,13 @@ final class ExplicitModuleBuildTests: XCTestCase {
977
985
let expectedImports2 = [ " C " , " E " , " G " , " Swift " , " SwiftOnoneSupport " , " _Concurrency " ]
978
986
// Dependnig on how recent the platform we are running on, the _StringProcessing module may or may not be present.
979
987
let expectedImports3 = [ " C " , " E " , " G " , " Swift " , " SwiftOnoneSupport " , " _Concurrency " , " _StringProcessing " ]
988
+ // Dependnig on how recent the platform we are running on, the _SwiftConcurrencyShims module may or may not be present.
989
+ let expectedImports4 = [ " C " , " E " , " G " , " Swift " , " SwiftOnoneSupport " , " _Concurrency " , " _StringProcessing " , " _SwiftConcurrencyShims " ]
980
990
XCTAssertTrue (
981
991
Set ( imports. imports) == Set ( expectedImports) ||
982
992
Set ( imports. imports) == Set ( expectedImports2) ||
983
- Set ( imports. imports) == Set ( expectedImports3) )
993
+ Set ( imports. imports) == Set ( expectedImports3) ||
994
+ Set ( imports. imports) == Set ( expectedImports4) )
984
995
}
985
996
}
986
997
@@ -1168,11 +1179,16 @@ final class ExplicitModuleBuildTests: XCTestCase {
1168
1179
let hasConcurrencyModule = dependencyGraph. modules. keys. contains {
1169
1180
$0. moduleName == " _Concurrency "
1170
1181
}
1182
+ let hasConcurrencyShimsModule = dependencyGraph. modules. keys. contains {
1183
+ $0. moduleName == " _SwiftConcurrencyShims "
1184
+ }
1171
1185
let hasStringProcessingModule = dependencyGraph. modules. keys. contains {
1172
1186
$0. moduleName == " _StringProcessing "
1173
1187
}
1174
1188
let adjustedExpectedNumberOfDependencies =
1175
- expectedNumberOfDependencies + ( hasConcurrencyModule ? 1 : 0 ) +
1189
+ expectedNumberOfDependencies +
1190
+ ( hasConcurrencyModule ? 1 : 0 ) +
1191
+ ( hasConcurrencyShimsModule ? 1 : 0 ) +
1176
1192
( hasStringProcessingModule ? 1 : 0 )
1177
1193
1178
1194
if ( dependencyGraph. modules. count != adjustedExpectedNumberOfDependencies) {
0 commit comments