[Lldb-commits] [lldb] 3ed0234 - Increase default timeout in lldbutil.expect_state_changes()

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 6 10:01:13 PST 2020


Author: Adrian Prantl
Date: 2020-03-06T10:00:47-08:00
New Revision: 3ed02340eaaf48cc0fe14b0e40e6cd3d9815de78

URL: https://github.com/llvm/llvm-project/commit/3ed02340eaaf48cc0fe14b0e40e6cd3d9815de78
DIFF: https://github.com/llvm/llvm-project/commit/3ed02340eaaf48cc0fe14b0e40e6cd3d9815de78.diff

LOG: Increase default timeout in lldbutil.expect_state_changes()

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/lldbutil.py
    lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/lldbutil.py b/lldb/packages/Python/lldbsuite/test/lldbutil.py
index 006362a4479c..d603091677f3 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbutil.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbutil.py
@@ -1062,7 +1062,7 @@ def print_stacktraces(process, string_buffer=False):
         return output.getvalue()
 
 
-def expect_state_changes(test, listener, process, states, timeout=5):
+def expect_state_changes(test, listener, process, states, timeout=30):
     """Listens for state changed events on the listener and makes sure they match what we
     expect. Stop-and-restart events (where GetRestartedFromEvent() returns true) are ignored."""
 

diff  --git a/lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py b/lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py
index cebd3d2b6eea..944afd125951 100644
--- a/lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py
+++ b/lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py
@@ -340,7 +340,7 @@ def _run(self):
         try:
             # accept() is stubborn and won't fail even when the socket is
             # shutdown, so we'll use a timeout
-            self._socket.settimeout(20.0)
+            self._socket.settimeout(30.0)
             client, client_addr = self._socket.accept()
             self._client = client
             # The connected client inherits its timeout from self._socket,


        


More information about the lldb-commits mailing list