[Lldb-commits] [lldb] [lldb] Put the new debugger in synchronous mode in TestGlobalModuleCache (PR #98041)

via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 8 09:13:37 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Pavel Labath (labath)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/98041.diff


1 Files Affected:

- (modified) lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py (+1) 


``````````diff
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
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/98041


More information about the lldb-commits mailing list