Skip to content

Commit 4ed5eb4

Browse files
committed
Revert "Reenable exit tests on Ubuntu 20.04 (#1343)"
This reverts commit a883652.
1 parent a883652 commit 4ed5eb4

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
@@ -75,11 +75,20 @@ let wasiLibcCSettings: [CSetting] = [
7575
.define("_WASI_EMULATED_MMAN", .when(platforms: [.wasi])),
7676
]
7777

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

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

0 commit comments

Comments
 (0)