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: Merge Windows helper function and update GH issues (#8569)
Update the GitHub issue reference on some skipped tests, and also merge
the skipIfOnWindowsBecause..() and XCTSkipOnWindows() helper functions
to make aid with discoverability.
Also, update the Git Tests to be skipped only in the self hosted
pipelines, as that is the environment where the tests are hanging.
throwXCTSkip("Thread-safe process working directory support is unavailable on this platform.")
296
+
throwXCTSkip("https://github.com/swiftlang/swift-package-manager/issues/8560: Thread-safe process working directory support is unavailable on this platform.")
280
297
}
281
298
#if os(Linux)
282
299
ifFileManager.default.contents(atPath:"/etc/system-release").map({String(decoding: $0, as:UTF8.self)=="Amazon Linux release 2 (Karoo)\n"})??false{
Copy file name to clipboardExpand all lines: Tests/BasicsTests/AsyncProcessTests.swift
+5-5
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ final class AsyncProcessTests: XCTestCase {
144
144
}
145
145
146
146
func testFindExecutable()throws{
147
-
tryskipOnWindowsAsTestCurrentlyFails(because:"https://github.com/swiftlang/swift-package-manager/issues/8547: Assertion failure when trying to find ls executable")
147
+
tryXCTSkipOnWindows(because:"https://github.com/swiftlang/swift-package-manager/issues/8547: Assertion failure when trying to find ls executable")
148
148
149
149
trytestWithTemporaryDirectory{ tmpdir in
150
150
// This process should always work.
@@ -426,8 +426,8 @@ final class AsyncProcessTests: XCTestCase {
426
426
427
427
func testAsyncStream()asyncthrows{
428
428
// rdar://133548796
429
-
tryXCTSkipIfCI()
430
-
tryskipOnWindowsAsTestCurrentlyFails(because:"https://github.com/swiftlang/swift-package-manager/issues/8547: 'swift test' was hanging.")
429
+
tryXCTSkipIfPlatformCI()
430
+
tryXCTSkipOnWindows(because:"https://github.com/swiftlang/swift-package-manager/issues/8547: 'swift test' was hanging.")
Copy file name to clipboardExpand all lines: Tests/BasicsTests/Serialization/SerializedJSONTests.swift
+2-2
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
13
13
@testableimport Basics
14
14
import XCTest
15
-
import _InternalTestSupport // for skipOnWindowsAsTestCurrentlyFails
15
+
import _InternalTestSupport // for XCTSkipOnWindows
16
16
17
17
finalclassSerializedJSONTests:XCTestCase{
18
18
func testPathInterpolation()throws{
@@ -34,7 +34,7 @@ final class SerializedJSONTests: XCTestCase {
34
34
}
35
35
36
36
func testPathInterpolationFailsOnWindows()throws{
37
-
tryskipOnWindowsAsTestCurrentlyFails(because:"Expectations are not met. Possibly related to https://github.com/swiftlang/swift-package-manager/issues/8511")
37
+
tryXCTSkipOnWindows(because:"Expectations are not met. Possibly related to https://github.com/swiftlang/swift-package-manager/issues/8511")
tryskipOnWindowsAsTestCurrentlyFails(because:"https://github.com/swiftlang/swift-package-manager/issues/8540: Package fails to build when the test is being executed")
33
+
tryXCTSkipOnWindows(because:"https://github.com/swiftlang/swift-package-manager/issues/8540: Package fails to build when the test is being executed")
34
34
35
35
tryXCTSkipIf(!UserToolchain.default.supportsSDKDependentTests(),"skipping because test environment doesn't support this test")
36
36
// Note: we can re-use the `TestableExe` fixture here since we just need an executable.
0 commit comments