@@ -39,7 +39,6 @@ def set_and_hit_breakpoint(self, continueToExit=True):
3939 if continueToExit :
4040 self .continue_to_exit ()
4141
42- @skipIfWindows
4342 @skipIfNetBSD # Hangs on NetBSD as well
4443 def test_by_pid (self ):
4544 """
@@ -56,7 +55,6 @@ def test_by_pid(self):
5655 self .attach (pid = self .process .pid )
5756 self .set_and_hit_breakpoint (continueToExit = True )
5857
59- @skipIfWindows
6058 @skipIfNetBSD # Hangs on NetBSD as well
6159 def test_by_name (self ):
6260 """
@@ -116,12 +114,8 @@ def test_by_name_waitFor(self):
116114 self .attach (program = program , waitFor = True )
117115 self .set_and_hit_breakpoint (continueToExit = True )
118116
119- @skipIfWindows
120117 @skipIfDarwin
121118 @skipIfNetBSD # Hangs on NetBSD as well
122- @skipIf (
123- archs = ["arm" , "aarch64" ]
124- ) # Example of a flaky run http://lab.llvm.org:8011/builders/lldb-aarch64-ubuntu/builds/5527/steps/test/logs/stdio
125119 def test_commands (self ):
126120 """
127121 Tests the "initCommands", "preRunCommands", "stopCommands",
@@ -155,7 +149,7 @@ def test_commands(self):
155149 initCommands = ["target list" , "platform list" ]
156150 preRunCommands = ["image list a.out" , "image dump sections a.out" ]
157151 postRunCommands = ["help trace" , "help process trace" ]
158- stopCommands = ["frame variable" , "bt " ]
152+ stopCommands = ["frame variable" , "thread backtrace " ]
159153 exitCommands = ["expr 2+3" , "expr 3+4" ]
160154 terminateCommands = ["expr 4+2" ]
161155 self .attach (
@@ -182,7 +176,7 @@ def test_commands(self):
182176 breakpoint_ids = self .set_function_breakpoints (functions )
183177 self .assertEqual (len (breakpoint_ids ), len (functions ), "expect one breakpoint" )
184178 self .continue_to_breakpoints (breakpoint_ids )
185- output = self .get_console ( timeout = 1.0 )
179+ output = self .collect_console ( timeout_secs = 10 , pattern = stopCommands [ - 1 ] )
186180 self .verify_commands ("stopCommands" , output , stopCommands )
187181
188182 # Continue after launch and hit the "pause()" call and stop the target.
@@ -192,7 +186,7 @@ def test_commands(self):
192186 time .sleep (0.5 )
193187 self .dap_server .request_pause ()
194188 self .dap_server .wait_for_stopped ()
195- output = self .get_console ( timeout = 1.0 )
189+ output = self .collect_console ( timeout_secs = 10 , pattern = stopCommands [ - 1 ] )
196190 self .verify_commands ("stopCommands" , output , stopCommands )
197191
198192 # Continue until the program exits
@@ -201,13 +195,12 @@ def test_commands(self):
201195 # "exitCommands" that were run after the second breakpoint was hit
202196 # and the "terminateCommands" due to the debugging session ending
203197 output = self .collect_console (
204- timeout_secs = 1 .0 ,
198+ timeout_secs = 10 .0 ,
205199 pattern = terminateCommands [0 ],
206200 )
207201 self .verify_commands ("exitCommands" , output , exitCommands )
208202 self .verify_commands ("terminateCommands" , output , terminateCommands )
209203
210- @skipIfWindows
211204 @skipIfDarwin
212205 @skipIfNetBSD # Hangs on NetBSD as well
213206 @skipIf (
0 commit comments