Skip to content

Commit 58e750b

Browse files
authored
[lldb] Put the new debugger in synchronous mode in TestGlobalModuleCache (llvm#98041)
In async mode, the test terminates sooner than it should (`run_to_source_breakpoint` does not work in this mode), and then the test crashes due to llvm#76057. Most of the time, the test does not fail because its already XFAILed, but the crash still registers as a failure.
1 parent 93869df commit 58e750b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def do_test(self, one_target, one_debugger):
111111
else:
112112
if one_target:
113113
new_debugger = lldb.SBDebugger().Create()
114+
new_debugger.SetAsync(False)
114115
self.old_debugger = self.dbg
115116
self.dbg = new_debugger
116117

0 commit comments

Comments
 (0)