Skip to content

Commit a883652

Browse files
authored
Reenable exit tests on Ubuntu 20.04 (#1343)
1 parent 5af94ab commit a883652

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Package.swift

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,11 @@ let wasiLibcCSettings: [CSetting] = [
7575
.define("_WASI_EMULATED_MMAN", .when(platforms: [.wasi])),
7676
]
7777

78-
var testOnlySwiftSettings: [SwiftSetting] = [
78+
let 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-
9283
let package = Package(
9384
name: "swift-foundation",
9485
platforms: [.macOS("15"), .iOS("18"), .tvOS("18"), .watchOS("11")],

0 commit comments

Comments
 (0)