swiftlang / swift-corelibs-foundation

The Foundation Project, providing core utilities, internationalization, and OS independence
swift.org
Apache License 2.0
5.29k stars 1.13k forks source link

[SR-13710] test_expectedTimeZone fails (on Linux) for current timezone CEST. #3941

Open dhoepfl opened 4 years ago

dhoepfl commented 4 years ago
Previous ID SR-13710
Radar rdar://problem/70101524
Original Reporter @dhoepfl
Type Bug
Environment TZ: CEST Debian Linux 9ebb4442a45223b252ab714a2c101748a969e2da
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 9b7563c72287a3195e5a44c38d50e9ac

Issue Description:

Given

> date
Thu 08 Oct 2020 05:12:40 PM CEST

The test test_expectedTimeZone in swift-corelibs-foundation/Tests/Foundation/Tests/TestDateFormatter.swift:402 fails:

swift-corelibs-foundation/Tests/Foundation/Tests/TestDateFormatter.swift:402: error: TestDateFormatter.test_expectedTimeZone : XCTAssertEqual failed: ("Optional("GMT+2")") is not equal to ("Optional("CEST")") -
typesanitizer commented 4 years ago

@swift-ci create

dhoepfl commented 4 years ago

Same with swift-corelibs-foundation/Tests/Foundation/Tests/TestTimeZone.swift:164:

error: TestTimeZone.test_systemTimeZoneUsesSystemTime : XCTAssertEqual failed: ("CEST") is not equal to ("GMT+2") - expected name "GMT+2" is not equal to "CEST"