Skip to content

[lldb] Skip ObjC timezone tests on macOS >= 14 (NFC) #78817

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
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ def test_nsdate_with_run_command(self):
"""Test formatters for NSDate."""
self.appkit_tester_impl(self.nsdate_data_formatter_commands, False)

@skipIf(macos_version=[">=", "14.0"])
def test_timezone_with_run_command(self):
"""Test formatters for NSTimeZone and CFTimeZone."""
self.appkit_tester_impl(self.timezone_data_formatter_commands, False)

def nsdate_data_formatter_commands(self):
self.expect(
"frame variable date1 date2",
Expand Down Expand Up @@ -51,16 +56,6 @@ def nsdate_data_formatter_commands(self):
self.expect_expr("date_1970_plus_05", result_summary="1970-01-01 00:00:00 UTC")
self.expect_expr("date_1970_plus_04", result_summary="1970-01-01 00:00:00 UTC")

self.expect(
"frame variable cupertino home europe",
substrs=['"America/Los_Angeles"', '"Europe/Rome"', '"Europe/Paris"'],
)

self.expect(
"frame variable cupertino_ns home_ns europe_ns",
substrs=['"America/Los_Angeles"', '"Europe/Rome"', '"Europe/Paris"'],
)

self.expect(
"frame variable mut_bv",
substrs=[
Expand All @@ -71,3 +66,14 @@ def nsdate_data_formatter_commands(self):

self.expect_expr("distant_past", result_summary="0001-01-01 00:00:00 UTC")
self.expect_expr("distant_future", result_summary="4001-01-01 00:00:00 UTC")

def timezone_data_formatter_commands(self):
self.expect(
"frame variable cupertino home europe",
substrs=['"America/Los_Angeles"', '"Europe/Rome"', '"Europe/Paris"'],
)

self.expect(
"frame variable cupertino_ns home_ns europe_ns",
substrs=['"America/Los_Angeles"', '"Europe/Rome"', '"Europe/Paris"'],
)