Skip to content

Commit b7355ee

Browse files
authored
[lldb] Skip ObjC timezone tests on macOS >= 14 (NFC) (#78817)
Starting with macOS 14, the `NSTimeZone` and `CFTimeZone` types are backed by swift implementations. These tests won't pass on mainline lldb, since it doesn't have Swift support.
1 parent b54e919 commit b7355ee

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

lldb/test/API/functionalities/data-formatter/data-formatter-objc/TestDataFormatterObjCNSDate.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ def test_nsdate_with_run_command(self):
1919
"""Test formatters for NSDate."""
2020
self.appkit_tester_impl(self.nsdate_data_formatter_commands, False)
2121

22+
@skipIf(macos_version=[">=", "14.0"])
23+
def test_timezone_with_run_command(self):
24+
"""Test formatters for NSTimeZone and CFTimeZone."""
25+
self.appkit_tester_impl(self.timezone_data_formatter_commands, False)
26+
2227
def nsdate_data_formatter_commands(self):
2328
self.expect(
2429
"frame variable date1 date2",
@@ -51,16 +56,6 @@ def nsdate_data_formatter_commands(self):
5156
self.expect_expr("date_1970_plus_05", result_summary="1970-01-01 00:00:00 UTC")
5257
self.expect_expr("date_1970_plus_04", result_summary="1970-01-01 00:00:00 UTC")
5358

54-
self.expect(
55-
"frame variable cupertino home europe",
56-
substrs=['"America/Los_Angeles"', '"Europe/Rome"', '"Europe/Paris"'],
57-
)
58-
59-
self.expect(
60-
"frame variable cupertino_ns home_ns europe_ns",
61-
substrs=['"America/Los_Angeles"', '"Europe/Rome"', '"Europe/Paris"'],
62-
)
63-
6459
self.expect(
6560
"frame variable mut_bv",
6661
substrs=[
@@ -71,3 +66,14 @@ def nsdate_data_formatter_commands(self):
7166

7267
self.expect_expr("distant_past", result_summary="0001-01-01 00:00:00 UTC")
7368
self.expect_expr("distant_future", result_summary="4001-01-01 00:00:00 UTC")
69+
70+
def timezone_data_formatter_commands(self):
71+
self.expect(
72+
"frame variable cupertino home europe",
73+
substrs=['"America/Los_Angeles"', '"Europe/Rome"', '"Europe/Paris"'],
74+
)
75+
76+
self.expect(
77+
"frame variable cupertino_ns home_ns europe_ns",
78+
substrs=['"America/Los_Angeles"', '"Europe/Rome"', '"Europe/Paris"'],
79+
)

0 commit comments

Comments
 (0)