[Lldb-commits] [lldb] r269025 - Fix race in TestExitDuringStep and unify pseudo_barrier handling

Ed Maste via lldb-commits lldb-commits at lists.llvm.org
Tue May 10 13:25:24 PDT 2016


On 10 May 2016 at 03:54, Pavel Labath via lldb-commits
<lldb-commits at lists.llvm.org> wrote:
> Author: labath
> Date: Tue May 10 02:54:25 2016
> New Revision: 269025
>
> URL: http://llvm.org/viewvc/llvm-project?rev=269025&view=rev
> Log:
> Fix race in TestExitDuringStep and unify pseudo_barrier handling

After this change TestThreadExit is failing on FreeBSD 10 with:
...
  File "/tank/emaste/src/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/thread/thread_exit/TestThreadExit.py",
line 36, in test
    bp3_id = lldbutil.run_break_set_by_file_and_line (self,
"main.cpp", self.break_3, num_expected_locations=1)
  File "/tank/emaste/src/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbutil.py",
line 342, in run_break_set_by_file_and_line
    check_breakpoint_result (test, break_results, num_locations =
num_expected_locations)
  File "/tank/emaste/src/llvm/tools/lldb/packages/Python/lldbsuite/test/lldbutil.py",
line 474, in check_breakpoint_result
    test.assertTrue (num_locations == out_num_locations, "Expecting %d
locations, got %d."%(num_locations, out_num_locations))
AssertionError: False is not True : Expecting 1 locations, got 2.
...

"breakpoint list" shows:

3: file = '/tank/emaste/src/llvm/tools/lldb/packages/Python/lldbsuite/test/functionalities/thread/thread_exit/main.cpp',
line = 67, locations = 2
  3.1: where = a.out`main + 1437 at main.cpp:67, address =
0x00000000004018bd, unresolved, hit count = 0
  3.2: where = a.out`main + 1846 at main.cpp:67, address =
0x0000000000401a56, unresolved, hit count = 0


More information about the lldb-commits mailing list