[Lldb-commits] [PATCH] D122193: Reland "[lldb/test] Add events listener helper class to lldbtest"
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 21 16:56:54 PDT 2022
mib created this revision.
mib added reviewers: labath, JDevlieghere.
mib added a project: LLDB.
Herald added a project: All.
mib requested review of this revision.
Herald added a subscriber: lldb-commits.
This reverts commit 8bf893466632cc2597188b431160effcd8cedeef <https://reviews.llvm.org/rG8bf893466632cc2597188b431160effcd8cedeef> and updates
it to - hopefully - fix the racing issue, when accessing the event list.
To do so, instead of listening for event on a separate thread and
appending the matching ones to an event list, this provides a new
`assertEvent` helper method with a "event checker" callback, that will
fetch only one event and run the callback if it matches the event mask
provided at `setUp`.
Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122193
Files:
lldb/packages/Python/lldbsuite/test/eventlistener.py
lldb/test/API/functionalities/diagnostic_reporting/TestDiagnosticReporting.py
lldb/test/API/functionalities/progress_reporting/TestProgressReporting.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122193.417134.patch
Type: text/x-patch
Size: 8233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220321/85016dc7/attachment.bin>
More information about the lldb-commits
mailing list