Skip to content

Commit cc5bc26

Browse files
jmschonfeldkateinoigakukun
authored andcommitted
Revert "Reenable exit tests on Ubuntu 20.04 (swiftlang#1343)"
This reverts commit a883652.
1 parent 92f6329 commit cc5bc26

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Package.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,20 @@ let wasiLibcCSettings: [CSetting] = [
7373
.define("_WASI_EMULATED_MMAN", .when(platforms: [.wasi])),
7474
]
7575

76-
let testOnlySwiftSettings: [SwiftSetting] = [
76+
var testOnlySwiftSettings: [SwiftSetting] = [
7777
// The latest Windows toolchain does not yet have exit tests in swift-testing
7878
.define("FOUNDATION_EXIT_TESTS", .when(platforms: [.macOS, .linux, .openbsd]))
7979
]
8080

81+
#if os(Linux)
82+
import FoundationEssentials
83+
84+
if ProcessInfo.processInfo.operatingSystemVersionString.hasPrefix("Ubuntu 20.") {
85+
// Exit tests currently hang indefinitely on Ubuntu 20.
86+
testOnlySwiftSettings.removeFirst()
87+
}
88+
#endif
89+
8190
let package = Package(
8291
name: "swift-foundation",
8392
platforms: [.macOS("15"), .iOS("18"), .tvOS("18"), .watchOS("11")],

0 commit comments

Comments
 (0)