<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/130863>130863</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb-dap] TestDAP_breakpointEvents.py is flaky
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb-dap
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ashgti
</td>
</tr>
</table>
<pre>
I've seen [TestDAP_breakpointEvents.py](https://github.com/llvm/llvm-project/blob/main/lldb/test/API/tools/lldb-dap/breakpoint-events/TestDAP_breakpointEvents.py) flake a number of times for me locally on macOS. I haven't found a root cause yet but some examples include:
https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/21926/testReport/junit/lldb-api/tools_lldb-dap_breakpoint-events/TestDAP_breakpointEvents_py/
The failures always look like:
```
FAIL: test_breakpoint_events (TestDAP_breakpointEvents.TestDAP_breakpointEvents)
This test sets a breakpoint in a shared library and runs and stops
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/lldb/test/API/tools/lldb-dap/breakpoint-events/TestDAP_breakpointEvents.py", line 90, in test_breakpoint_events
self.assertEqual(len(self.dap_server.breakpoint_events), 1)
AssertionError: 0 != 1
Config=arm64-/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/bin/clang
----------------------------------------------------------------------
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0ld1u6zYMx59GuSES2HS-fOEL96QGChTYwdZdF5RNJ2pkKRPldHn7QW6bnnXoAQ7QBQH8QYsif_yTIhGzd8yVWt2o1W5GYzz4UJEc9tHMtO8u1Z3CzZlBmB2o1c0DS9zV3x91YDqevHHx9swuyuJ0Uaudwu0hxpOoolbYKGz2Jh5GvWj9oLCx9vx2mZ-Cf-I2Kmy09VphM5Bxk7FLT5El2ervd-nBeyuvtnlHp7Touv2cp_0VNj8LDUvoLR0ZCNw4aA7ge4hmYIHeBxgYrG_J2gt4BwO1v_2xgDs40Jmdwk2E3o-uA4LgfYSWRmG4cAQ9RhA_MPDfNJwsCxjX2rFjVdSgslpl9QcegdktLOlForDwYa-weZoA_PDibPhZYXN_v7u5mknmU_7tQEdW2GBe4vqV1O988iHxehqdiW-k6GTe4D2-oXv8FXCPCVzzksbDgaEnY8fAAmSf6SJgvT-CNceUbfpqnb3-s7qp7-4TgxTdD34fX_YEhdtPq_WZQWGpshoAHg5GJscgHAUI3r8E44BADhS4A2t0oHABch2E0cl0I9GfRGX1_Et-CUygljW1x5TU4CVC4JZdUom1YCnpuHwBBNAYy6AQFTZ_CocEn1ucj8IhVY_d0bj08tmHo5yo5X_r4qMGPnTS_9U7qPAbWOMYyizdGvdJXVOOwrZfkAiHePvXSFbh1qYm2k6GJEHhcOaw-O9qLJP3_KXQ9eTCeHcbgg9JSxkozFWxg1xl9TfverNXxY7CsF7Ovwxop-d6NLZLnKaB1Fpy-68UzLVNZl1VdGVR0oyrfLPMN8WqzIvZoepK6jek-5I4w7bLN5si67FclzmW3WZbzkyFGa6yIs-xKPJVsWiXGte9Xuqiz8qMtVpmPJCx1ykzMyIjV3mRbdfFzJJmK9PQR3xXBqYjIFSTqvS4F7XMrJEo716iiXY6LK6LVjv4iXbAyDR3L7Mx2OqXj4Yp6FS-17jPFf4TAAD__zqcJI0">