summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-10-21 20:50:45 +0000
committerAdrian Prantl <aprantl@apple.com>2019-10-21 20:50:45 +0000
commited870cce676ec873d5d0c9e084744ffba0eb67fc (patch)
tree7b065dcdefb2de90adb4b25515554840b299f29e /lldb/packages/Python/lldbsuite/test
parente5ecba4f53e77210c960606b4a3b5a411a4d5823 (diff)
downloadbcm5719-llvm-ed870cce676ec873d5d0c9e084744ffba0eb67fc.tar.gz
bcm5719-llvm-ed870cce676ec873d5d0c9e084744ffba0eb67fc.zip
Found more timeouts to unify.
llvm-svn: 375454
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteKill.py2
-rw-r--r--lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py5
-rw-r--r--lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py5
3 files changed, 7 insertions, 5 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteKill.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteKill.py
index 54d72907a0e..ece0cd16393 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteKill.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteKill.py
@@ -32,7 +32,7 @@ class TestGdbRemoteKill(gdbremote_testcase.GdbRemoteTestCaseBase):
# Wait a moment for completed and now-detached inferior process to
# clear.
- time.sleep(1)
+ time.sleep(self._WAIT_TIMEOUT)
if not lldb.remote_platform:
# Process should be dead now. Reap results.
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
index ed60244e88f..4effc154d2d 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
@@ -43,7 +43,7 @@ class TestGdbRemoteThreadsInStopReply(
hw_info = self.parse_hw_info(context)
# Give threads time to start up, then break.
- time.sleep(1)
+ time.sleep(self._WAIT_TIMEOUT)
self.reset_test_sequence()
self.test_sequence.add_log_lines(
[
@@ -61,7 +61,8 @@ class TestGdbRemoteThreadsInStopReply(
self.assertIsNotNone(context)
# Wait until all threads have started.
- threads = self.wait_for_thread_count(thread_count, timeout_seconds=3)
+ threads = self.wait_for_thread_count(thread_count,
+ timeout_seconds=self._WAIT_TIMEOUT)
self.assertIsNotNone(threads)
self.assertEqual(len(threads), thread_count)
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py
index 0944ba5d051..ffd56e3852b 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py
@@ -34,7 +34,7 @@ class TestGdbRemote_qThreadStopInfo(gdbremote_testcase.GdbRemoteTestCaseBase):
self.assertIsNotNone(context)
# Give threads time to start up, then break.
- time.sleep(1)
+ time.sleep(self._WAIT_TIMEOUT)
self.reset_test_sequence()
self.test_sequence.add_log_lines(
[
@@ -52,7 +52,8 @@ class TestGdbRemote_qThreadStopInfo(gdbremote_testcase.GdbRemoteTestCaseBase):
self.assertIsNotNone(context)
# Wait until all threads have started.
- threads = self.wait_for_thread_count(thread_count, timeout_seconds=self._WAIT_TIMEOUT)
+ threads = self.wait_for_thread_count(thread_count,
+ timeout_seconds=self._WAIT_TIMEOUT)
self.assertIsNotNone(threads)
# On Windows, there could be more threads spawned. For example, DebugBreakProcess will
OpenPOWER on IntegriCloud