summaryrefslogtreecommitdiffstats
path: root/lldb/test/expression_command/timeout
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2015-08-20 12:12:09 +0000
committerPavel Labath <labath@google.com>2015-08-20 12:12:09 +0000
commitc6a144b0aaa0df954423a13c1804bfe0538bd21f (patch)
tree42138f343eed2a798aef2f49c935446dc8b6b0c4 /lldb/test/expression_command/timeout
parent56585d517be5cb1470cf798ddd64f4e7e05beabf (diff)
downloadbcm5719-llvm-c6a144b0aaa0df954423a13c1804bfe0538bd21f.tar.gz
bcm5719-llvm-c6a144b0aaa0df954423a13c1804bfe0538bd21f.zip
Increase timeout in TestCallWithTimeout to reduce flakyness
The test was flaky on the android buildbot, because the 10ms test completed before we got a chance to interrupt it. I increase the duration to 50ms to hopefully get more consistent results. llvm-svn: 245555
Diffstat (limited to 'lldb/test/expression_command/timeout')
-rw-r--r--lldb/test/expression_command/timeout/TestCallWithTimeout.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/expression_command/timeout/TestCallWithTimeout.py b/lldb/test/expression_command/timeout/TestCallWithTimeout.py
index 856e1f7f251..1ddb11a9053 100644
--- a/lldb/test/expression_command/timeout/TestCallWithTimeout.py
+++ b/lldb/test/expression_command/timeout/TestCallWithTimeout.py
@@ -65,15 +65,15 @@ class ExprCommandWithTimeoutsTestCase(TestBase):
frame = thread.GetFrameAtIndex(0)
- value = frame.EvaluateExpression ("wait_a_while (10000)", options)
+ value = frame.EvaluateExpression ("wait_a_while (50000)", options)
self.assertTrue (value.IsValid())
- self.assertTrue (value.GetError().Success() == False)
+ self.assertFalse (value.GetError().Success())
# Now do the same thing with the command line command, and make sure it works too.
interp = self.dbg.GetCommandInterpreter()
result = lldb.SBCommandReturnObject()
- return_value = interp.HandleCommand ("expr -t 100 -u true -- wait_a_while(10000)", result)
+ return_value = interp.HandleCommand ("expr -t 100 -u true -- wait_a_while(50000)", result)
self.assertTrue (return_value == lldb.eReturnStatusFailed)
# Okay, now do it again with long enough time outs:
OpenPOWER on IntegriCloud