@@ -21,7 +21,6 @@ import TSCUtility
21
21
import SPMTestSupport
22
22
23
23
final class WorkspaceTests : XCTestCase {
24
-
25
24
func testBasics( ) throws {
26
25
let sandbox = AbsolutePath ( " /tmp/ws/ " )
27
26
let fs = InMemoryFileSystem ( )
@@ -743,7 +742,7 @@ final class WorkspaceTests: XCTestCase {
743
742
]
744
743
workspace. checkPackageGraph ( deps: deps) { ( _, diagnostics) in
745
744
DiagnosticsEngineTester ( diagnostics) { result in
746
- result. check ( diagnostic: . contains( " the package dependency graph could not be resolved; possibly because of these requirements " ) , behavior: . error)
745
+ result. check ( diagnostic: . contains( " version solving failed " ) , behavior: . error)
747
746
}
748
747
}
749
748
// There should be no extra fetches.
@@ -1412,7 +1411,7 @@ final class WorkspaceTests: XCTestCase {
1412
1411
// Check failure.
1413
1412
workspace. checkResolve ( pkg: " Foo " , roots: [ " Root " ] , version: " 1.3.0 " ) { diagnostics in
1414
1413
DiagnosticsEngineTester ( diagnostics) { result in
1415
- result. check ( diagnostic: . contains( " tmp/ws/pkgs/ Foo @ 1.3.0" ) , behavior: . error)
1414
+ result. check ( diagnostic: . contains( " Foo 1.3.0 " ) , behavior: . error)
1416
1415
}
1417
1416
}
1418
1417
workspace. checkManagedDependencies ( ) { result in
@@ -1505,7 +1504,7 @@ final class WorkspaceTests: XCTestCase {
1505
1504
1506
1505
workspace. checkPackageGraph ( roots: [ " Root " ] ) { ( graph, diagnostics) in
1507
1506
DiagnosticsEngineTester ( diagnostics) { result in
1508
- result. check ( diagnostic: . contains( " /tmp/ws/pkgs/ Foo @ 1.0.0..<2.0.0" ) , behavior: . error)
1507
+ result. check ( diagnostic: . contains( " Foo 1.0.0..<2.0.0 " ) , behavior: . error)
1509
1508
}
1510
1509
}
1511
1510
}
@@ -2070,7 +2069,7 @@ final class WorkspaceTests: XCTestCase {
2070
2069
]
2071
2070
workspace. checkPackageGraph ( roots: [ " Root " ] , deps: deps) { ( _, diagnostics) in
2072
2071
DiagnosticsEngineTester ( diagnostics) { result in
2073
- result. check ( diagnostic: . contains( " /tmp/ws/pkgs/ Bar @ 1.1.0" ) , behavior: . error)
2072
+ result. check ( diagnostic: . contains( " Bar 1.1.0 " ) , behavior: . error)
2074
2073
}
2075
2074
}
2076
2075
}
@@ -2256,7 +2255,7 @@ final class WorkspaceTests: XCTestCase {
2256
2255
result. check ( targets: " Foo " )
2257
2256
}
2258
2257
DiagnosticsEngineTester ( diagnostics) { result in
2259
- result. check ( diagnostic: . contains( " 1. 5.0 contains incompatible dependencies " ) , behavior: . error)
2258
+ result. check ( diagnostic: . contains( " Bar {1.0.0..<1. 5.0, 1.5.1..<2.0.0} is forbidden " ) , behavior: . error)
2260
2259
}
2261
2260
}
2262
2261
}
@@ -3300,8 +3299,7 @@ final class WorkspaceTests: XCTestCase {
3300
3299
] ,
3301
3300
versions: [ " 1.0.0 " , nil ]
3302
3301
) ,
3303
- ] ,
3304
- enablePubGrub: true
3302
+ ]
3305
3303
)
3306
3304
3307
3305
// Load the graph.
0 commit comments