[Lldb-commits] [lldb] [lldb][test] Bump packet-timeout to 10 mins (PR #232000)
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 15 01:43:07 PDT 2026
https://github.com/Teemperor updated https://github.com/llvm/llvm-project/pull/232000
>From 8d6aa572fbfb5dc3fe56f6478f948a9d78bce0d6 Mon Sep 17 00:00:00 2001
From: Raphael Isemann <rise at apple.com>
Date: Wed, 14 Oct 2026 18:12:23 +0100
Subject: [PATCH] [lldb][test] Bump packet-timeout to 10 mins
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.
---
lldb/packages/Python/lldbsuite/test/lldbtest.py | 2 +-
lldb/test/API/api/multithreaded/driver.cpp | 3 ++-
lldb/test/Shell/lit-lldb-init.in | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index da87c28a6751e2..eb40bef63a5b00 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 2c0172c7030cb9..663de43735a385 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 11565cd07de9be..3bfd7b6b67d070 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