Skip to content

Commit aa5c175

Browse files
authored
Disable tests failing on amazon linux (#5036)
1 parent 9e7732b commit aa5c175

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Tests/Foundation/TestDateFormatter.swift

+3
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ class TestDateFormatter: XCTestCase {
331331
XCTAssertNotNil(result)
332332
}
333333

334+
// Test disabled due to Amazon Linux failures (rdar://132784697)
335+
#if false
334336
func test_setTimeZoneToNil() {
335337
let f = DateFormatter()
336338
// Time zone should be the system one by default.
@@ -339,6 +341,7 @@ class TestDateFormatter: XCTestCase {
339341
// Time zone should go back to the system one.
340342
XCTAssertEqual(f.timeZone, NSTimeZone.system)
341343
}
344+
#endif
342345

343346
func test_setTimeZone() {
344347
// Test two different time zones. Should ensure that if one

Tests/Foundation/TestTimeZone.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ class TestTimeZone: XCTestCase {
156156
XCTAssertEqual(actualIdentifier, expectedIdentifier, "expected identifier \"\(expectedIdentifier)\" is not equal to \"\(actualIdentifier as Optional)\"")
157157
}
158158

159-
#if !os(Windows)
159+
// Test disabled due to Amazon Linux failures (rdar://132784697)
160+
#if !os(Windows) && false
160161
func test_systemTimeZoneUsesSystemTime() {
161162
tzset()
162163
var t = time(nil)

0 commit comments

Comments
 (0)