Skip to content

Disable tests failing on amazon linux #5036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Tests/Foundation/TestDateFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion Tests/Foundation/TestTimeZone.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down