Skip to content

Commit 25c671e

Browse files
authored
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.
1 parent 75877ea commit 25c671e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/WorkspaceTests/WorkspaceTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5671,8 +5671,8 @@ final class WorkspaceTests: XCTestCase {
56715671

56725672
workspace.checkPackageGraphFailure(roots: ["Root"]) { diagnostics in
56735673
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)
56765676
}
56775677
}
56785678
}

0 commit comments

Comments
 (0)