<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - FreeBSD buildbot TestCallWithTimeout failure after r206835"
   href="http://llvm.org/bugs/show_bug.cgi?id=19605">19605</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FreeBSD buildbot TestCallWithTimeout failure after r206835
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>emaste@freebsd.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After r206835 the FreeBSD buildbot fails TestCallWithTimeout.

Run:
<a href="http://llvm-amd64.freebsd.your.org/b/builders/lldb-amd64-freebsd/builds/2044">http://llvm-amd64.freebsd.your.org/b/builders/lldb-amd64-freebsd/builds/2044</a>

Failure:

FAIL: LLDB (/usr/bin/clang-amd64) :: test_with_dwarf
(TestCallWithTimeout.ExprCommandWithTimeoutsTestCase)
======================================================================
FAIL: test_with_dwarf (TestCallWithTimeout.ExprCommandWithTimeoutsTestCase)
   Test calling std::String member function.
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/lldbtest.py",
line 370, in wrapper
    return func(self, *args, **kwargs)
  File
"/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/expression_command/timeout/TestCallWithTimeout.py",
line 33, in test_with_dwarf
    self.call_function()
  File
"/data/buildslave/lldb-amd64-freebsd/src-llvm/tools/lldb/test/expression_command/timeout/TestCallWithTimeout.py",
line 67, in call_function
    self.assertTrue (value.GetError().Success() == False)
AssertionError: False is not True
Config=amd64-/usr/bin/clang
----------------------------------------------------------------------
Ran 2 tests in 0.233s

>From TestCallWithTimeout.py:
    58          # First set the timeout too short, and make sure we fail.
    59          options = lldb.SBExpressionOptions()
    60          options.SetTimeoutInMicroSeconds(100)
    61          options.SetUnwindOnError(True)
    62
    63          frame = thread.GetFrameAtIndex(0)
    64          
    65          value = frame.EvaluateExpression ("wait_a_while (10000)",
options)
    66          self.assertTrue (value.IsValid())
    67          self.assertTrue (value.GetError().Success() == False)
    68

So we request a 100uS timeout, but report Success() for the expression.


r206835: <a href="http://llvm.org/viewvc/llvm-project?view=rev&revision=206835">http://llvm.org/viewvc/llvm-project?view=rev&revision=206835</a>

Make RunThreadPlan start the timeout clock for each part of the expression
evaluation AFTER the
successful resume for that part.  This will make the timeouts more stable when
lldb is running
in a busy program.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>