@@ -154,73 +154,53 @@ def test_vkill_both(self):
154
154
self .vkill_test (kill_parent = True , kill_child = True )
155
155
156
156
@expectedFailureAll (archs = ["arm" ]) # TODO
157
- @expectedFailureAll (archs = ["aarch64" ],
158
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
159
157
@add_test_categories (["fork" ])
160
158
def test_c_parent (self ):
161
159
self .resume_one_test (run_order = ["parent" , "parent" ])
162
160
163
161
@expectedFailureAll (archs = ["arm" ]) # TODO
164
- @expectedFailureAll (archs = ["aarch64" ],
165
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
166
162
@add_test_categories (["fork" ])
167
163
def test_c_child (self ):
168
164
self .resume_one_test (run_order = ["child" , "child" ])
169
165
170
166
@expectedFailureAll (archs = ["arm" ]) # TODO
171
- @expectedFailureAll (archs = ["aarch64" ],
172
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
173
167
@add_test_categories (["fork" ])
174
168
def test_c_parent_then_child (self ):
175
169
self .resume_one_test (run_order = ["parent" , "parent" , "child" , "child" ])
176
170
177
171
@expectedFailureAll (archs = ["arm" ]) # TODO
178
- @expectedFailureAll (archs = ["aarch64" ],
179
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
180
172
@add_test_categories (["fork" ])
181
173
def test_c_child_then_parent (self ):
182
174
self .resume_one_test (run_order = ["child" , "child" , "parent" , "parent" ])
183
175
184
176
@expectedFailureAll (archs = ["arm" ]) # TODO
185
- @expectedFailureAll (archs = ["aarch64" ],
186
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
187
177
@add_test_categories (["fork" ])
188
178
def test_c_interspersed (self ):
189
179
self .resume_one_test (run_order = ["parent" , "child" , "parent" , "child" ])
190
180
191
181
@expectedFailureAll (archs = ["arm" ]) # TODO
192
- @expectedFailureAll (archs = ["aarch64" ],
193
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
194
182
@add_test_categories (["fork" ])
195
183
def test_vCont_parent (self ):
196
184
self .resume_one_test (run_order = ["parent" , "parent" ], use_vCont = True )
197
185
198
186
@expectedFailureAll (archs = ["arm" ]) # TODO
199
- @expectedFailureAll (archs = ["aarch64" ],
200
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
201
187
@add_test_categories (["fork" ])
202
188
def test_vCont_child (self ):
203
189
self .resume_one_test (run_order = ["child" , "child" ], use_vCont = True )
204
190
205
191
@expectedFailureAll (archs = ["arm" ]) # TODO
206
- @expectedFailureAll (archs = ["aarch64" ],
207
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
208
192
@add_test_categories (["fork" ])
209
193
def test_vCont_parent_then_child (self ):
210
194
self .resume_one_test (run_order = ["parent" , "parent" , "child" , "child" ],
211
195
use_vCont = True )
212
196
213
197
@expectedFailureAll (archs = ["arm" ]) # TODO
214
- @expectedFailureAll (archs = ["aarch64" ],
215
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
216
198
@add_test_categories (["fork" ])
217
199
def test_vCont_child_then_parent (self ):
218
200
self .resume_one_test (run_order = ["child" , "child" , "parent" , "parent" ],
219
201
use_vCont = True )
220
202
221
203
@expectedFailureAll (archs = ["arm" ]) # TODO
222
- @expectedFailureAll (archs = ["aarch64" ],
223
- bugnumber = "https://github.com/llvm/llvm-project/issues/56268" )
224
204
@add_test_categories (["fork" ])
225
205
def test_vCont_interspersed (self ):
226
206
self .resume_one_test (run_order = ["parent" , "child" , "parent" , "child" ],
@@ -229,7 +209,7 @@ def test_vCont_interspersed(self):
229
209
@add_test_categories (["fork" ])
230
210
def test_vCont_two_processes (self ):
231
211
parent_pid , parent_tid , child_pid , child_tid = (
232
- self .start_fork_test (["fork" , "trap " ]))
212
+ self .start_fork_test (["fork" , "stop " ]))
233
213
234
214
self .test_sequence .add_log_lines ([
235
215
# try to resume both processes
@@ -241,7 +221,7 @@ def test_vCont_two_processes(self):
241
221
242
222
@add_test_categories (["fork" ])
243
223
def test_vCont_all_processes_explicit (self ):
244
- self .start_fork_test (["fork" , "trap " ])
224
+ self .start_fork_test (["fork" , "stop " ])
245
225
246
226
self .test_sequence .add_log_lines ([
247
227
# try to resume all processes implicitly
@@ -252,7 +232,7 @@ def test_vCont_all_processes_explicit(self):
252
232
253
233
@add_test_categories (["fork" ])
254
234
def test_vCont_all_processes_implicit (self ):
255
- self .start_fork_test (["fork" , "trap " ])
235
+ self .start_fork_test (["fork" , "stop " ])
256
236
257
237
self .test_sequence .add_log_lines ([
258
238
# try to resume all processes implicitly
@@ -265,7 +245,7 @@ def test_vCont_all_processes_implicit(self):
265
245
@add_test_categories (["fork" ])
266
246
def test_threadinfo (self ):
267
247
parent_pid , parent_tid , child_pid , child_tid = (
268
- self .start_fork_test (["fork" , "thread:new" , "trap " ]))
248
+ self .start_fork_test (["fork" , "thread:new" , "stop " ]))
269
249
pidtids = [
270
250
(parent_pid , parent_tid ),
271
251
(child_pid , child_tid ),
@@ -285,7 +265,7 @@ def test_threadinfo(self):
285
265
"send packet: $OK#00" ,
286
266
"read packet: $c#00" ,
287
267
{"direction" : "send" ,
288
- "regex" : "^[$]T05thread:p{}.{}.*" .format (* pidtid ),
268
+ "regex" : self . stop_regex .format (* pidtid ),
289
269
},
290
270
], True )
291
271
self .add_threadinfo_collection_packets ()
@@ -317,7 +297,7 @@ def test_memory_read_write(self):
317
297
"get-data-address-hex:g_message" ,
318
298
"fork" ,
319
299
"print-message:" ,
320
- "trap " ,
300
+ "stop " ,
321
301
])
322
302
self .add_qSupported_packets (["multiprocess+" ,
323
303
"fork-events+" ])
@@ -366,7 +346,7 @@ def test_memory_read_write(self):
366
346
"regex" : self .maybe_strict_output_regex (r"message: (.*)\r\n" ),
367
347
"capture" : {1 : "printed_message" }},
368
348
{"direction" : "send" ,
369
- "regex" : "^[$]T05thread:p{}.{}.*" .format (* pidtid ),
349
+ "regex" : self . stop_regex .format (* pidtid ),
370
350
},
371
351
], True )
372
352
ret = self .expect_gdbremote_sequence ()
@@ -399,7 +379,7 @@ def test_memory_read_write(self):
399
379
@add_test_categories (["fork" ])
400
380
def test_register_read_write (self ):
401
381
parent_pid , parent_tid , child_pid , child_tid = (
402
- self .start_fork_test (["fork" , "thread:new" , "trap " ]))
382
+ self .start_fork_test (["fork" , "thread:new" , "stop " ]))
403
383
pidtids = [
404
384
(parent_pid , parent_tid ),
405
385
(child_pid , child_tid ),
@@ -411,7 +391,7 @@ def test_register_read_write(self):
411
391
"send packet: $OK#00" ,
412
392
"read packet: $c#00" ,
413
393
{"direction" : "send" ,
414
- "regex" : "^[$]T05thread:p{}.{}.*" .format (* pidtid ),
394
+ "regex" : self . stop_regex .format (* pidtid ),
415
395
},
416
396
], True )
417
397
@@ -496,7 +476,7 @@ def test_register_read_write(self):
496
476
@add_test_categories (["fork" ])
497
477
def test_qC (self ):
498
478
parent_pid , parent_tid , child_pid , child_tid = (
499
- self .start_fork_test (["fork" , "thread:new" , "trap " ]))
479
+ self .start_fork_test (["fork" , "thread:new" , "stop " ]))
500
480
pidtids = [
501
481
(parent_pid , parent_tid ),
502
482
(child_pid , child_tid ),
@@ -508,7 +488,7 @@ def test_qC(self):
508
488
"send packet: $OK#00" ,
509
489
"read packet: $c#00" ,
510
490
{"direction" : "send" ,
511
- "regex" : "^[$]T05thread:p{}.{}.*" .format (* pidtid ),
491
+ "regex" : self . stop_regex .format (* pidtid ),
512
492
},
513
493
], True )
514
494
@@ -531,7 +511,7 @@ def test_qC(self):
531
511
@add_test_categories (["fork" ])
532
512
def test_T (self ):
533
513
parent_pid , parent_tid , child_pid , child_tid = (
534
- self .start_fork_test (["fork" , "thread:new" , "trap " ]))
514
+ self .start_fork_test (["fork" , "thread:new" , "stop " ]))
535
515
pidtids = [
536
516
(parent_pid , parent_tid ),
537
517
(child_pid , child_tid ),
@@ -543,7 +523,7 @@ def test_T(self):
543
523
"send packet: $OK#00" ,
544
524
"read packet: $c#00" ,
545
525
{"direction" : "send" ,
546
- "regex" : "^[$]T05thread:p{}.{}.*" .format (* pidtid ),
526
+ "regex" : self . stop_regex .format (* pidtid ),
547
527
},
548
528
], True )
549
529
0 commit comments