You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests: correct expectations for WorkspaceTests (#5830)
The path representation is always platform dependent and cannot be
written as a literal. Use `AbsolutePath` to ensure that we get the
correct spelling for the path separator.
Copy file name to clipboardExpand all lines: Tests/WorkspaceTests/WorkspaceTests.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5671,8 +5671,8 @@ final class WorkspaceTests: XCTestCase {
5671
5671
5672
5672
workspace.checkPackageGraphFailure(roots:["Root"]){ diagnostics in
5673
5673
testDiagnostics(diagnostics){ result in
5674
-
result.checkUnordered(diagnostic:.contains("local binary target 'A1' at '/tmp/ws/roots/Root/XCFrameworks/incorrect.xcframework' does not contain a binary artifact."), severity:.error)
5675
-
result.checkUnordered(diagnostic:.contains("local binary target 'A2' at '/tmp/ws/roots/Root/ArtifactBundles/incorrect.artifactbundle' does not contain a binary artifact."), severity:.error)
5674
+
result.checkUnordered(diagnostic:.contains("local binary target 'A1' at '\(AbsolutePath(path:"/tmp/ws/roots/Root/XCFrameworks/incorrect.xcframework"))' does not contain a binary artifact."), severity:.error)
5675
+
result.checkUnordered(diagnostic:.contains("local binary target 'A2' at '\(AbsolutePath(path:"/tmp/ws/roots/Root/ArtifactBundles/incorrect.artifactbundle"))' does not contain a binary artifact."), severity:.error)
0 commit comments