diff --git a/Tests/Foundation/TestDateFormatter.swift b/Tests/Foundation/TestDateFormatter.swift index c495831303..1695f3ecac 100644 --- a/Tests/Foundation/TestDateFormatter.swift +++ b/Tests/Foundation/TestDateFormatter.swift @@ -331,6 +331,8 @@ class TestDateFormatter: XCTestCase { XCTAssertNotNil(result) } +// Test disabled due to Amazon Linux failures (rdar://132784697) +#if false func test_setTimeZoneToNil() { let f = DateFormatter() // Time zone should be the system one by default. @@ -339,6 +341,7 @@ class TestDateFormatter: XCTestCase { // Time zone should go back to the system one. XCTAssertEqual(f.timeZone, NSTimeZone.system) } +#endif func test_setTimeZone() { // Test two different time zones. Should ensure that if one diff --git a/Tests/Foundation/TestTimeZone.swift b/Tests/Foundation/TestTimeZone.swift index 0fd100bfc7..6d2fbaf2ae 100644 --- a/Tests/Foundation/TestTimeZone.swift +++ b/Tests/Foundation/TestTimeZone.swift @@ -156,7 +156,8 @@ class TestTimeZone: XCTestCase { XCTAssertEqual(actualIdentifier, expectedIdentifier, "expected identifier \"\(expectedIdentifier)\" is not equal to \"\(actualIdentifier as Optional)\"") } -#if !os(Windows) +// Test disabled due to Amazon Linux failures (rdar://132784697) +#if !os(Windows) && false func test_systemTimeZoneUsesSystemTime() { tzset() var t = time(nil)