[Lldb-commits] [lldb] r245555 - Increase timeout in TestCallWithTimeout to reduce flakyness

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 20 05:12:10 PDT 2015


Author: labath
Date: Thu Aug 20 07:12:09 2015
New Revision: 245555

URL: http://llvm.org/viewvc/llvm-project?rev=245555&view=rev
Log:
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.

Modified:
    lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py

Modified: lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py?rev=245555&r1=245554&r2=245555&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py (original)
+++ lldb/trunk/test/expression_command/timeout/TestCallWithTimeout.py Thu Aug 20 07:12:09 2015
@@ -65,15 +65,15 @@ class ExprCommandWithTimeoutsTestCase(Te
 
         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:




More information about the lldb-commits mailing list