summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2024-07-09 09:59:49 +0200
committerGitHub <noreply@github.com>2024-07-09 09:59:49 +0200
commit58e750bfd621ac7ef8647eb1170b254e05ffc10d (patch)
treef235e40a4584f1eef27e85c4095fc4b31d201fd7 /lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py
parent93869dfd89387844bf8b605ebcd1abc0cc81bde8 (diff)
[lldb] Put the new debugger in synchronous mode in TestGlobalModuleCache (#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 #76057. Most of the time, the test does not fail because its already XFAILed, but the crash still registers as a failure.
Diffstat (limited to 'lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py')
-rw-r--r--lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py1
1 files changed, 1 insertions, 0 deletions
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 0942dcd655b7..ccefc28946e0 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 @@ class GlobalModuleCacheTestCase(TestBase):
else:
if one_target:
new_debugger = lldb.SBDebugger().Create()
+ new_debugger.SetAsync(False)
self.old_debugger = self.dbg
self.dbg = new_debugger