forked from OSchip/llvm-project
[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:
parent
205fd03a27
commit
2bd995b7e8
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue