Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions Sources/SKTestSupport/SkipUnless.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,6 @@ package actor SkipUnless {
try XCTSkipUnless(Platform.current == .windows, message)
}

package static func platformIsNotAmazonLinux(_ message: String) throws {
guard Platform.current == .linux,
let release = try? String(contentsOf: URL(filePath: "/etc/system-release"), encoding: .utf8)
else {
return
}

try XCTSkipUnless(!release.hasPrefix("Amazon"), message)
}

package static func platformSupportsTaskPriorityElevation() throws {
#if os(macOS)
guard #available(macOS 14.0, *) else {
Expand All @@ -159,7 +149,6 @@ package actor SkipUnless {
Platform.current != .windows,
"Temporarily skipping as we need to fix these tests to use the cmake-built swift-syntax libraries on Windows."
)
try SkipUnless.platformIsNotAmazonLinux("https://github.com/swiftlang/sourcekit-lsp/issues/2350")

return try await shared.skipUnlessSupported(file: file, line: line) {
do {
Expand Down