From afe79a9ccc3f08eb145ad41f5f690d3f4e1e719e Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 8 Jul 2024 18:08:45 +0200 Subject: [PATCH] [lldb] Put the new debugger in synchronous mode in TestGlobalModuleCache In async mode, the test terminates sooner that it should (`run_to_source_breakpoint` does not work in this mode), and then the test crashes due to #98038. Most of the time, the test does not fail because its already XFAILed, but the crash still registers as a failure. --- .../API/python_api/global_module_cache/TestGlobalModuleCache.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py b/lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py index 0942dcd655b75..ccefc28946e06 100644 --- a/lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py +++ b/lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py @@ -111,6 +111,7 @@ def do_test(self, one_target, one_debugger): else: if one_target: new_debugger = lldb.SBDebugger().Create() + new_debugger.SetAsync(False) self.old_debugger = self.dbg self.dbg = new_debugger