Skip to content

Commit bef4ae5

Browse files
author
git apple-llvm automerger
committed
Merge commit '6378abd733f5' from apple/master into swift/master-next
2 parents 4574979 + 6378abd commit bef4ae5

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteProcessInfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def attach_commandline_qProcessInfo_reports_correct_pid(self):
5353
self.add_process_info_collection_packets()
5454

5555
# Run the stream
56-
context = self.expect_gdbremote_sequence(timeout_seconds=8)
56+
context = self.expect_gdbremote_sequence(timeout_seconds=self._DEFAULT_TIMEOUT)
5757
self.assertIsNotNone(context)
5858

5959
# Gather process info response

lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemote_qThreadStopInfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def gather_stop_replies_via_qThreadStopInfo(self, thread_count):
5252
self.assertIsNotNone(context)
5353

5454
# Wait until all threads have started.
55-
threads = self.wait_for_thread_count(thread_count, timeout_seconds=3)
55+
threads = self.wait_for_thread_count(thread_count, timeout_seconds=self._WAIT_TIMEOUT)
5656
self.assertIsNotNone(threads)
5757

5858
# On Windows, there could be more threads spawned. For example, DebugBreakProcess will

lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestLldbGdbServer.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def Hg_switches_to_3_threads(self):
639639
self.run_process_then_stop(run_seconds=1)
640640

641641
# Wait at most x seconds for 3 threads to be present.
642-
threads = self.wait_for_thread_count(3, timeout_seconds=5)
642+
threads = self.wait_for_thread_count(3, timeout_seconds=self._WAIT_TIMEOUT)
643643
self.assertEqual(len(threads), 3)
644644

645645
# verify we can $H to each thead, and $qC matches the thread we set.
@@ -735,7 +735,7 @@ def Hc_then_Csignal_signals_correct_thread(self, segfault_signo):
735735
2: "thread_id"}}],
736736
True)
737737

738-
context = self.expect_gdbremote_sequence(timeout_seconds=10)
738+
context = self.expect_gdbremote_sequence(timeout_seconds=self._DEFAULT_TIMEOUT)
739739
self.assertIsNotNone(context)
740740
signo = context.get("signo")
741741
self.assertEqual(int(signo, 16), segfault_signo)
@@ -771,7 +771,8 @@ def Hc_then_Csignal_signals_correct_thread(self, segfault_signo):
771771
True)
772772

773773
# Run the sequence.
774-
context = self.expect_gdbremote_sequence(timeout_seconds=10)
774+
context = self.expect_gdbremote_sequence(
775+
timeout_seconds=self._DEFAULT_TIMEOUT)
775776
self.assertIsNotNone(context)
776777

777778
# Ensure the stop signal is the signal we delivered.
@@ -1485,7 +1486,7 @@ def P_and_p_thread_suffix_work(self):
14851486
self.assertIsNotNone(context)
14861487

14871488
# Wait for 3 threads to be present.
1488-
threads = self.wait_for_thread_count(3, timeout_seconds=5)
1489+
threads = self.wait_for_thread_count(3, timeout_seconds=self._WAIT_TIMEOUT)
14891490
self.assertEqual(len(threads), 3)
14901491

14911492
expected_reg_values = []

lldb/packages/Python/lldbsuite/test/tools/lldb-server/commandline/TestStubReverseConnect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class TestStubReverseConnect(gdbremote_testcase.GdbRemoteTestCaseBase):
1414

1515
mydir = TestBase.compute_mydir(__file__)
1616

17-
_DEFAULT_TIMEOUT = 20
17+
_DEFAULT_TIMEOUT = 20 * (10 if ('ASAN_OPTIONS' in os.environ) else 1)
1818

1919
def setUp(self):
2020
# Set up the test.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ class GdbRemoteTestCaseBase(TestBase):
3333
NO_DEBUG_INFO_TESTCASE = True
3434

3535
_TIMEOUT_SECONDS = 120 * (10 if ('ASAN_OPTIONS' in os.environ) else 1)
36+
_DEFAULT_TIMEOUT = 10 * (10 if ('ASAN_OPTIONS' in os.environ) else 1)
3637
_READ_TIMEOUT = 5 * (10 if ('ASAN_OPTIONS' in os.environ) else 1)
37-
_WAIT_TIMEOUT = 3 * (10 if ('ASAN_OPTIONS' in os.environ) else 1)
38+
_WAIT_TIMEOUT = 5 * (10 if ('ASAN_OPTIONS' in os.environ) else 1)
3839

3940
_GDBREMOTE_KILL_PACKET = "$k#6b"
4041

0 commit comments

Comments
 (0)