summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2019-03-12 20:41:29 +0000
committerDavide Italiano <davide@freebsd.org>2019-03-12 20:41:29 +0000
commit2bd995b7e8fda6d51cb586e4a0f92ea1d99596e0 (patch)
tree6484c1b4a46c51ef0de2ecfaeebb8abaecbe66db /lldb/packages/Python/lldbsuite
parent205fd03a27dcf1649f4facaf8d80d219e2937d9d (diff)
downloadbcm5719-llvm-2bd995b7e8fda6d51cb586e4a0f92ea1d99596e0.tar.gz
bcm5719-llvm-2bd995b7e8fda6d51cb586e4a0f92ea1d99596e0.zip
[lldb-mi] Make this test more reliable. NFC.
Except that it will probably stop failing on and off on my machine. llvm-svn: 355968
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py
index 1a20774a493..8e579ceea51 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py
@@ -50,6 +50,12 @@ class MiSignalTestCase(lldbmi_testcase.MiTestCaseBase):
self.runCmd("-exec-continue")
self.expect("\^running")
+ # There's a chance that lldb didn't resume the process, we send an interruput but
+ # the process is not running yet. Give it some time to restart. 5 seconds ought to
+ # be enough for every modern CPU out there.
+ import time
+ time.sleep(5)
+
# Test that Ctrl+C can interrupt an execution
self.child.sendintr() # FIXME: here uses self.child directly
self.expect(
OpenPOWER on IntegriCloud