@@ -203,6 +203,8 @@ final class ModuleAliasingBuildTests: XCTestCase {
203
203
}
204
204
205
205
func testModuleAliasingDuplicateDylibProductNames( ) throws {
206
+ let fooPkg : AbsolutePath = " /fooPkg "
207
+ let barPkg : AbsolutePath = " /barPkg "
206
208
let fs = InMemoryFileSystem (
207
209
emptyFiles:
208
210
" /thisPkg/Sources/exe/main.swift " ,
@@ -215,7 +217,7 @@ final class ModuleAliasingBuildTests: XCTestCase {
215
217
manifests: [
216
218
Manifest . createFileSystemManifest (
217
219
displayName: " fooPkg " ,
218
- path: " / fooPkg" ,
220
+ path: fooPkg,
219
221
products: [
220
222
ProductDescription ( name: " Logging " , type: . library( . dynamic) , targets: [ " Logging " ] ) ,
221
223
] ,
@@ -225,7 +227,7 @@ final class ModuleAliasingBuildTests: XCTestCase {
225
227
) ,
226
228
Manifest . createFileSystemManifest (
227
229
displayName: " barPkg " ,
228
- path: " / barPkg" ,
230
+ path: barPkg,
229
231
products: [
230
232
ProductDescription ( name: " Logging " , type: . library( . dynamic) , targets: [ " Logging " ] ) ,
231
233
] ,
@@ -258,11 +260,13 @@ final class ModuleAliasingBuildTests: XCTestCase {
258
260
] ,
259
261
observabilityScope: observability. topScope
260
262
) ) { error in
261
- XCTAssertEqual ( ( error as? PackageGraphError ) ? . description, " multiple products named 'Logging' in: 'barpkg' (at '/ barPkg'), 'foopkg' (at '/ fooPkg') " )
263
+ XCTAssertEqual ( ( error as? PackageGraphError ) ? . description, " multiple products named 'Logging' in: 'barpkg' (at ' \( barPkg) '), 'foopkg' (at ' \( fooPkg) ') " )
262
264
}
263
265
}
264
266
265
267
func testModuleAliasingDuplicateDylibStaticLibProductNames( ) throws {
268
+ let fooPkg : AbsolutePath = " /fooPkg "
269
+ let barPkg : AbsolutePath = " /barPkg "
266
270
let fs = InMemoryFileSystem (
267
271
emptyFiles:
268
272
" /thisPkg/Sources/exe/main.swift " ,
@@ -275,7 +279,7 @@ final class ModuleAliasingBuildTests: XCTestCase {
275
279
manifests: [
276
280
Manifest . createFileSystemManifest (
277
281
displayName: " fooPkg " ,
278
- path: " / fooPkg" ,
282
+ path: fooPkg,
279
283
products: [
280
284
ProductDescription ( name: " Logging " , type: . library( . dynamic) , targets: [ " Logging " ] ) ,
281
285
] ,
@@ -285,7 +289,7 @@ final class ModuleAliasingBuildTests: XCTestCase {
285
289
) ,
286
290
Manifest . createFileSystemManifest (
287
291
displayName: " barPkg " ,
288
- path: " / barPkg" ,
292
+ path: barPkg,
289
293
products: [
290
294
ProductDescription ( name: " Logging " , type: . library( . static) , targets: [ " Logging " ] ) ,
291
295
] ,
@@ -318,7 +322,7 @@ final class ModuleAliasingBuildTests: XCTestCase {
318
322
] ,
319
323
observabilityScope: observability. topScope
320
324
) ) { error in
321
- XCTAssertEqual ( ( error as? PackageGraphError ) ? . description, " multiple products named 'Logging' in: 'barpkg' (at '/ barPkg'), 'foopkg' (at '/ fooPkg') " )
325
+ XCTAssertEqual ( ( error as? PackageGraphError ) ? . description, " multiple products named 'Logging' in: 'barpkg' (at ' \( barPkg) '), 'foopkg' (at ' \( fooPkg) ') " )
322
326
}
323
327
}
324
328
0 commit comments