@@ -1146,17 +1146,13 @@ final class BuildPlanTests: XCTestCase {
1146
1146
) )
1147
1147
1148
1148
XCTAssertEqual ( Set ( result. productMap. keys. map ( \. productName) ) , [ " APackageTests " ] )
1149
- #if os(macOS)
1150
- XCTAssertEqual ( Set ( result. targetMap. keys. map ( \. moduleName) ) , [ " ATarget " , " BTarget " , " ATargetTests " ] )
1151
- #else
1152
1149
XCTAssertEqual ( Set ( result. targetMap. keys. map ( \. moduleName) ) , [
1153
1150
" APackageTests " ,
1154
1151
" APackageDiscoveredTests " ,
1155
1152
" ATarget " ,
1156
1153
" ATargetTests " ,
1157
1154
" BTarget " ,
1158
1155
] )
1159
- #endif
1160
1156
}
1161
1157
1162
1158
func testBasicReleasePackage( ) throws {
@@ -2213,13 +2209,7 @@ final class BuildPlanTests: XCTestCase {
2213
2209
observabilityScope: observability. topScope
2214
2210
) )
2215
2211
result. checkProductsCount ( 1 )
2216
- #if os(macOS)
2217
- result. checkTargetsCount ( 2 )
2218
- #else
2219
- // On non-Apple platforms, when a custom entry point file is present (e.g. XCTMain.swift), there is one
2220
- // additional target for the synthesized test entry point.
2221
2212
result. checkTargetsCount ( 3 )
2222
- #endif
2223
2213
2224
2214
let buildPath = result. plan. productsBuildPath
2225
2215
@@ -2288,6 +2278,8 @@ final class BuildPlanTests: XCTestCase {
2288
2278
buildPath. appending ( components: " Modules " , " Foo.swiftmodule " ) . pathString,
2289
2279
" -Xlinker " , " -add_ast_path " , " -Xlinker " ,
2290
2280
buildPath. appending ( components: " Modules " , " FooTests.swiftmodule " ) . pathString,
2281
+ " -Xlinker " , " -add_ast_path " , " -Xlinker " ,
2282
+ buildPath. appending ( components: " PkgPackageTests.build " , " PkgPackageTests.swiftmodule " ) . pathString,
2291
2283
" -g " ,
2292
2284
]
2293
2285
)
0 commit comments