@@ -14,6 +14,7 @@ class LibcxxChronoDataFormatterTestCase(TestBase):
14
14
@skipIf (compiler = "clang" , compiler_version = ["<" , "17.0" ])
15
15
def test_with_run_command (self ):
16
16
"""Test that that file and class static variables display correctly."""
17
+ isNotWindowsHost = lldbplatformutil .getHostPlatform () != "windows"
17
18
self .build ()
18
19
(self .target , process , thread , bkpt ) = lldbutil .run_to_source_breakpoint (
19
20
self , "break here" , lldb .SBFileSpec ("main.cpp" , False )
@@ -57,7 +58,11 @@ def test_with_run_command(self):
57
58
self .expect (
58
59
"frame variable ss_neg_date_time" ,
59
60
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
+ )
61
66
],
62
67
)
63
68
self .expect (
@@ -68,7 +73,11 @@ def test_with_run_command(self):
68
73
self .expect (
69
74
"frame variable ss_pos_date_time" ,
70
75
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
+ )
72
81
],
73
82
)
74
83
self .expect (
@@ -103,7 +112,13 @@ def test_with_run_command(self):
103
112
)
104
113
self .expect (
105
114
"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
+ ],
107
122
)
108
123
self .expect (
109
124
"frame variable sd_neg_days" ,
@@ -112,7 +127,13 @@ def test_with_run_command(self):
112
127
113
128
self .expect (
114
129
"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
+ ],
116
137
)
117
138
self .expect (
118
139
"frame variable sd_pos_days" ,
@@ -157,7 +178,11 @@ def test_with_run_command(self):
157
178
self .expect (
158
179
"frame variable ls_neg_date_time" ,
159
180
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
+ )
161
186
],
162
187
)
163
188
self .expect (
@@ -168,7 +193,11 @@ def test_with_run_command(self):
168
193
self .expect (
169
194
"frame variable ls_pos_date_time" ,
170
195
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
+ )
172
201
],
173
202
)
174
203
self .expect (
@@ -207,7 +236,13 @@ def test_with_run_command(self):
207
236
)
208
237
self .expect (
209
238
"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
+ ],
211
246
)
212
247
self .expect (
213
248
"frame variable ld_neg_days" ,
@@ -216,7 +251,13 @@ def test_with_run_command(self):
216
251
217
252
self .expect (
218
253
"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
+ ],
220
261
)
221
262
self .expect (
222
263
"frame variable ld_pos_days" ,
0 commit comments