Skip to content

Commit 513c372

Browse files
committed
[lldb][test] Break early when walking backtrace in concurrent tests
We only need to see that 1 frame of the stack is in user code. No need to carry on looking. Doing so actually caused a test failure on Armv8 Ubuntu Jammy where a libc function does not have a display name. I'm sure I'm going to get stung by this elsewhere, but for this test, breaking early sidesteps the problem.
1 parent c876761 commit 513c372

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/packages/Python/lldbsuite/test/concurrent_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ def do_thread_actions(
290290
if funcname in f.GetDisplayFunctionName():
291291
thread_has_user_code = True
292292
break
293+
294+
if thread_has_user_code:
295+
break
296+
293297
if thread_has_user_code:
294298
num_threads_with_usercode += 1
295299

0 commit comments

Comments
 (0)