Skip to content

Commit bdfd754

Browse files
authored
Rename remaining occurrences of the old helper. (#8583)
Rename remaining occurrences of the old helper. ### Motivation: My local test failed to build after #8569 with ``` …/Tests/WorkspaceTests/WorkspaceTests.swift:16148:13: error: cannot find 'skipOnWindowsAsTestCurrentlyFails' in scope 16146 | 16147 | func testInvalidTrait_WhenParentPackageEnablesTraits() async throws { 16148 | try skipOnWindowsAsTestCurrentlyFails(because: #"\tmp\ws doesn't exist in file system"#) | `- error: cannot find 'skipOnWindowsAsTestCurrentlyFails' in scope 16149 | 16150 | let sandbox = AbsolutePath("/tmp/ws/") ``` I checked, and it appears to be leftovers after #8569: ``` % rg skipOnWindowsAsTestCurrentlyFails Tests/WorkspaceTests/WorkspaceTests.swift 16148: try skipOnWindowsAsTestCurrentlyFails(because: #"\tmp\ws doesn't exist in file system"#) 16211: try skipOnWindowsAsTestCurrentlyFails(because: #"\tmp\ws doesn't exist in file system"#) ``` ### Modifications: Renamed `skipOnWindowsAsTestCurrentlyFails` to `XCTSkipOnWindows`. ### Result: Tests build and pass.
1 parent 072bf1a commit bdfd754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/WorkspaceTests/WorkspaceTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -16145,7 +16145,7 @@ final class WorkspaceTests: XCTestCase {
1614516145
}
1614616146

1614716147
func testInvalidTrait_WhenParentPackageEnablesTraits() async throws {
16148-
try skipOnWindowsAsTestCurrentlyFails(because: #"\tmp\ws doesn't exist in file system"#)
16148+
try XCTSkipOnWindows(because: #"\tmp\ws doesn't exist in file system"#)
1614916149

1615016150
let sandbox = AbsolutePath("/tmp/ws/")
1615116151
let fs = InMemoryFileSystem()
@@ -16208,7 +16208,7 @@ final class WorkspaceTests: XCTestCase {
1620816208
}
1620916209

1621016210
func testInvalidTraitConfiguration_ForRootPackage() async throws {
16211-
try skipOnWindowsAsTestCurrentlyFails(because: #"\tmp\ws doesn't exist in file system"#)
16211+
try XCTSkipOnWindows(because: #"\tmp\ws doesn't exist in file system"#)
1621216212

1621316213
let sandbox = AbsolutePath("/tmp/ws/")
1621416214
let fs = InMemoryFileSystem()

0 commit comments

Comments
 (0)