[Lldb-commits] [lldb] r355968 - [lldb-mi] Make this test more reliable. NFC.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 12 13:41:29 PDT 2019
Author: davide
Date: Tue Mar 12 13:41:29 2019
New Revision: 355968
URL: http://llvm.org/viewvc/llvm-project?rev=355968&view=rev
Log:
[lldb-mi] Make this test more reliable. NFC.
Except that it will probably stop failing on and off on my machine.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py?rev=355968&r1=355967&r2=355968&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py Tue Mar 12 13:41:29 2019
@@ -50,6 +50,12 @@ class MiSignalTestCase(lldbmi_testcase.M
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(
More information about the lldb-commits
mailing list