@@ -49,7 +49,7 @@ class MiscellaneousTestCase: XCTestCase {
49
49
50
50
fixture ( name: " Miscellaneous/ExactDependencies " ) { prefix in
51
51
XCTAssertBuilds ( prefix. appending ( component: " app " ) )
52
- let buildDir = prefix. appending ( components: " app " , " .build " , UserToolchain . default. triple. tripleString , " debug " )
52
+ let buildDir = prefix. appending ( components: " app " , " .build " , UserToolchain . default. triple. platformBuildPathComponent ( ) , " debug " )
53
53
XCTAssertFileExists ( buildDir. appending ( component: " FooExec " ) )
54
54
XCTAssertFileExists ( buildDir. appending ( component: " FooLib1.swiftmodule " ) )
55
55
XCTAssertFileExists ( buildDir. appending ( component: " FooLib2.swiftmodule " ) )
@@ -122,7 +122,7 @@ class MiscellaneousTestCase: XCTestCase {
122
122
*/
123
123
func testInternalDependencyEdges( ) {
124
124
fixture ( name: " Miscellaneous/DependencyEdges/Internal " ) { prefix in
125
- let execpath = prefix. appending ( components: " .build " , UserToolchain . default. triple. tripleString , " debug " , " Foo " ) . pathString
125
+ let execpath = prefix. appending ( components: " .build " , UserToolchain . default. triple. platformBuildPathComponent ( ) , " debug " , " Foo " ) . pathString
126
126
127
127
XCTAssertBuilds ( prefix)
128
128
var output = try Process . checkNonZeroExit ( args: execpath)
@@ -146,7 +146,7 @@ class MiscellaneousTestCase: XCTestCase {
146
146
*/
147
147
func testExternalDependencyEdges1( ) {
148
148
fixture ( name: " DependencyResolution/External/Complex " ) { prefix in
149
- let execpath = prefix. appending ( components: " app " , " .build " , UserToolchain . default. triple. tripleString , " debug " , " Dealer " ) . pathString
149
+ let execpath = prefix. appending ( components: " app " , " .build " , UserToolchain . default. triple. platformBuildPathComponent ( ) , " debug " , " Dealer " ) . pathString
150
150
151
151
let packageRoot = prefix. appending ( component: " app " )
152
152
XCTAssertBuilds ( packageRoot)
@@ -173,7 +173,7 @@ class MiscellaneousTestCase: XCTestCase {
173
173
*/
174
174
func testExternalDependencyEdges2( ) {
175
175
fixture ( name: " Miscellaneous/DependencyEdges/External " ) { prefix in
176
- let execpath = [ prefix. appending ( components: " root " , " .build " , UserToolchain . default. triple. tripleString , " debug " , " dep2 " ) . pathString]
176
+ let execpath = [ prefix. appending ( components: " root " , " .build " , UserToolchain . default. triple. platformBuildPathComponent ( ) , " debug " , " dep2 " ) . pathString]
177
177
178
178
let packageRoot = prefix. appending ( component: " root " )
179
179
XCTAssertBuilds ( prefix. appending ( component: " root " ) )
@@ -197,7 +197,7 @@ class MiscellaneousTestCase: XCTestCase {
197
197
func testSpaces( ) {
198
198
fixture ( name: " Miscellaneous/Spaces Fixture " ) { prefix in
199
199
XCTAssertBuilds ( prefix)
200
- XCTAssertFileExists ( prefix. appending ( components: " .build " , UserToolchain . default. triple. tripleString , " debug " , " Module_Name_1.build " , " Foo.swift.o " ) )
200
+ XCTAssertFileExists ( prefix. appending ( components: " .build " , UserToolchain . default. triple. platformBuildPathComponent ( ) , " debug " , " Module_Name_1.build " , " Foo.swift.o " ) )
201
201
}
202
202
}
203
203
@@ -339,7 +339,7 @@ class MiscellaneousTestCase: XCTestCase {
339
339
let env = [ " PKG_CONFIG_PATH " : prefix. pathString]
340
340
_ = try executeSwiftBuild ( moduleUser, env: env)
341
341
342
- XCTAssertFileExists ( moduleUser. appending ( components: " .build " , triple. tripleString , " debug " , " SystemModuleUserClang " ) )
342
+ XCTAssertFileExists ( moduleUser. appending ( components: " .build " , triple. platformBuildPathComponent ( ) , " debug " , " SystemModuleUserClang " ) )
343
343
}
344
344
}
345
345
0 commit comments