[Lldb-commits] [PATCH] D85514: [LLDB] Fix timeout value on expect_gdbremote_sequence

Muhammad Omair Javaid via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Aug 8 11:57:54 PDT 2020


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc888694a8eda: [LLDB] Fix timeout value on expect_gdbremote_sequence (authored by omjavaid).
Herald added a project: LLDB.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85514/new/

https://reviews.llvm.org/D85514

Files:
  lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
  lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py


Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
===================================================================
--- lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
+++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
@@ -809,6 +809,9 @@
         self.entries = []
         self.logger = logger
 
+    def __len__(self):
+        return len(self.entries)
+
     def add_log_lines(self, log_lines, remote_input_is_read):
         for line in log_lines:
             if isinstance(line, str):
Index: lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
===================================================================
--- lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
+++ lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
@@ -703,7 +703,7 @@
             self.sock,
             self.test_sequence,
             self._pump_queues,
-            self.DEFAULT_TIMEOUT,
+            self.DEFAULT_TIMEOUT * len(self.test_sequence),
             self.logger)
 
     _KNOWN_REGINFO_KEYS = [


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85514.284142.patch
Type: text/x-patch
Size: 1157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200808/2c51aa23/attachment.bin>


More information about the lldb-commits mailing list