[lldb-mi] Make this test more reliable. NFC.

Except that it will probably stop failing on and off on my machine.

llvm-svn: 355968
This commit is contained in:
Davide Italiano 2019-03-12 20:41:29 +00:00
parent 205fd03a27
commit 2bd995b7e8
1 changed files with 6 additions and 0 deletions

View File

@ -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(