@@ -14,6 +14,7 @@ class LibcxxChronoDataFormatterTestCase(TestBase):
1414 @skipIf (compiler = "clang" , compiler_version = ["<" , "17.0" ])
1515 def test_with_run_command (self ):
1616 """Test that that file and class static variables display correctly."""
17+ isNotWindowsHost = lldbplatformutil .getHostPlatform () != "windows"
1718 self .build ()
1819 (self .target , process , thread , bkpt ) = lldbutil .run_to_source_breakpoint (
1920 self , "break here" , lldb .SBFileSpec ("main.cpp" , False )
@@ -57,7 +58,11 @@ def test_with_run_command(self):
5758 self .expect (
5859 "frame variable ss_neg_date_time" ,
5960 substrs = [
60- "ss_neg_date_time = date/time=-32767-01-01T00:00:00Z timestamp=-1096193779200 s"
61+ (
62+ "ss_neg_date_time = date/time=-32767-01-01T00:00:00Z timestamp=-1096193779200 s"
63+ if isNotWindowsHost
64+ else "ss_neg_date_time = timestamp=-1096193779200 s"
65+ )
6166 ],
6267 )
6368 self .expect (
@@ -68,7 +73,11 @@ def test_with_run_command(self):
6873 self .expect (
6974 "frame variable ss_pos_date_time" ,
7075 substrs = [
71- "ss_pos_date_time = date/time=32767-12-31T23:59:59Z timestamp=971890963199 s"
76+ (
77+ "ss_pos_date_time = date/time=32767-12-31T23:59:59Z timestamp=971890963199 s"
78+ if isNotWindowsHost
79+ else "ss_pos_date_time = timestamp=971890963199 s"
80+ )
7281 ],
7382 )
7483 self .expect (
@@ -103,7 +112,13 @@ def test_with_run_command(self):
103112 )
104113 self .expect (
105114 "frame variable sd_neg_date" ,
106- substrs = ["sd_neg_date = date=-32767-01-01Z timestamp=-12687428 days" ],
115+ substrs = [
116+ (
117+ "sd_neg_date = date=-32767-01-01Z timestamp=-12687428 days"
118+ if isNotWindowsHost
119+ else "sd_neg_date = timestamp=-12687428 days"
120+ )
121+ ],
107122 )
108123 self .expect (
109124 "frame variable sd_neg_days" ,
@@ -112,7 +127,13 @@ def test_with_run_command(self):
112127
113128 self .expect (
114129 "frame variable sd_pos_date" ,
115- substrs = ["sd_pos_date = date=32767-12-31Z timestamp=11248737 days" ],
130+ substrs = [
131+ (
132+ "sd_pos_date = date=32767-12-31Z timestamp=11248737 days"
133+ if isNotWindowsHost
134+ else "sd_pos_date = timestamp=11248737 days"
135+ )
136+ ],
116137 )
117138 self .expect (
118139 "frame variable sd_pos_days" ,
@@ -157,7 +178,11 @@ def test_with_run_command(self):
157178 self .expect (
158179 "frame variable ls_neg_date_time" ,
159180 substrs = [
160- "ls_neg_date_time = date/time=-32767-01-01T00:00:00 timestamp=-1096193779200 s"
181+ (
182+ "ls_neg_date_time = date/time=-32767-01-01T00:00:00 timestamp=-1096193779200 s"
183+ if isNotWindowsHost
184+ else "ls_neg_date_time = timestamp=-1096193779200 s"
185+ )
161186 ],
162187 )
163188 self .expect (
@@ -168,7 +193,11 @@ def test_with_run_command(self):
168193 self .expect (
169194 "frame variable ls_pos_date_time" ,
170195 substrs = [
171- "ls_pos_date_time = date/time=32767-12-31T23:59:59 timestamp=971890963199 s"
196+ (
197+ "ls_pos_date_time = date/time=32767-12-31T23:59:59 timestamp=971890963199 s"
198+ if isNotWindowsHost
199+ else "ls_pos_date_time = timestamp=971890963199 s"
200+ )
172201 ],
173202 )
174203 self .expect (
@@ -207,7 +236,13 @@ def test_with_run_command(self):
207236 )
208237 self .expect (
209238 "frame variable ld_neg_date" ,
210- substrs = ["ld_neg_date = date=-32767-01-01 timestamp=-12687428 days" ],
239+ substrs = [
240+ (
241+ "ld_neg_date = date=-32767-01-01 timestamp=-12687428 days"
242+ if isNotWindowsHost
243+ else "ld_neg_date = timestamp=-12687428 days"
244+ )
245+ ],
211246 )
212247 self .expect (
213248 "frame variable ld_neg_days" ,
@@ -216,7 +251,13 @@ def test_with_run_command(self):
216251
217252 self .expect (
218253 "frame variable ld_pos_date" ,
219- substrs = ["ld_pos_date = date=32767-12-31 timestamp=11248737 days" ],
254+ substrs = [
255+ (
256+ "ld_pos_date = date=32767-12-31 timestamp=11248737 days"
257+ if isNotWindowsHost
258+ else "ld_pos_date = timestamp=11248737 days"
259+ )
260+ ],
220261 )
221262 self .expect (
222263 "frame variable ld_pos_days" ,
0 commit comments