[Lldb-commits] [lldb] 7923083 - [lldb][test] Bump packet-timeout to 10 mins (#232000)

via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 15 03:57:13 PDT 2026


Author: Raphael Isemann
Date: 2026-10-15T11:57:06+01:00
New Revision: 79230836b9cd397b50337dc28314ed2f87c760a3

URL: https://github.com/llvm/llvm-project/commit/79230836b9cd397b50337dc28314ed2f87c760a3
DIFF: https://github.com/llvm/llvm-project/commit/79230836b9cd397b50337dc28314ed2f87c760a3.diff

LOG: [lldb][test] Bump packet-timeout to 10 mins (#232000)

We have some tests that fail on very slow machines due to an arbtirary
timeout of 1 minute:

```
failed to get reply to handshake packet within timeout of 60.0 seconds
```

This patch pushes this arbitrary timeout to 10 minutes which should fix
most of the issues.

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/lldbtest.py
    lldb/test/API/api/multithreaded/driver.cpp
    lldb/test/Shell/lit-lldb-init.in

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index da87c28a6751e..eb40bef63a5b0 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -899,7 +899,7 @@ def setUpCommands(cls):
             # pass just because Clang thinks it has a fix-it.
             "settings set target.auto-apply-fixits false",
             # Testsuite runs in parallel and the host can have also other load.
-            "settings set plugin.process.gdb-remote.packet-timeout 60",
+            "settings set plugin.process.gdb-remote.packet-timeout 600",
             # LLDB-internal utility expressions can take very long when the
             # host is under heavy load.
             "settings set target.process.utility-expression-timeout 600",

diff  --git a/lldb/test/API/api/multithreaded/driver.cpp b/lldb/test/API/api/multithreaded/driver.cpp
index 2c0172c7030cb..663de43735a38 100644
--- a/lldb/test/API/api/multithreaded/driver.cpp
+++ b/lldb/test/API/api/multithreaded/driver.cpp
@@ -32,7 +32,8 @@ int main(int argc, char **argv) {
   SBDebugger::Initialize();
   SBDebugger dbg = SBDebugger::Create();
   dbg.HandleCommand("settings set symbols.enable-external-lookup false");
-  dbg.HandleCommand("settings set plugin.process.gdb-remote.packet-timeout 60");
+  dbg.HandleCommand(
+      "settings set plugin.process.gdb-remote.packet-timeout 600");
 
   try {
     if (!dbg.IsValid())

diff  --git a/lldb/test/Shell/lit-lldb-init.in b/lldb/test/Shell/lit-lldb-init.in
index 11565cd07de9b..3bfd7b6b67d07 100644
--- a/lldb/test/Shell/lit-lldb-init.in
+++ b/lldb/test/Shell/lit-lldb-init.in
@@ -1,6 +1,6 @@
 # LLDB init file for the LIT tests.
 settings set symbols.enable-external-lookup false
-settings set plugin.process.gdb-remote.packet-timeout 60
+settings set plugin.process.gdb-remote.packet-timeout 600
 settings set interpreter.echo-comment-commands false
 settings set symbols.clang-modules-cache-path "@LLDB_TEST_MODULE_CACHE_LLDB@"
 settings set target.auto-apply-fixits false


        


More information about the lldb-commits mailing list