Differential D19214 Diff 54027 packages/Python/lldbsuite/test/issue_verification/TestRerunTimeout.py.park
Changeset View
Changeset View
Standalone View
Standalone View
packages/Python/lldbsuite/test/issue_verification/TestRerunTimeout.py.park
Context not available. | |||||
import time | import time | ||||
import lldbsuite.test.lldbtest as lldbtest | import lldbsuite.test.decorators as decorators | ||||
import rerun_base | import rerun_base | ||||
class RerunTimeoutTestCase(rerun_base.RerunBaseTestCase): | class RerunTimeoutTestCase(rerun_base.RerunBaseTestCase): | ||||
@lldbtest.no_debug_info_test | @decorators.no_debug_info_test | ||||
def test_timeout_rerun_succeeds(self): | def test_timeout_rerun_succeeds(self): | ||||
"""Tests that timeout logic kicks in and is picked up.""" | """Tests that the timeout logic kicks in and that this timeout is picked up.""" | ||||
if not self.should_generate_issue(): | if not self.should_generate_issue(): | ||||
# We pass this time. | # We pass this time. | ||||
return | return | ||||
# We time out this time. | # We time out this time. | ||||
while True: | while True: | ||||
# noinspection PyBroadException | |||||
try: | try: | ||||
time.sleep(1) | time.sleep(1) | ||||
except: | except: | ||||
Context not available. |