omjavaid updated this revision to Diff 284068. omjavaid added a comment. Fixed as suggested by @JDevlieghere
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 = [
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 = [
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits