[all-commits] [llvm/llvm-project] 09ff41: [lldb/test] Add events listener helper class to ll...

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Fri Mar 18 16:36:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09ff41a087760ea7e80b8e5390a05101c5a5b929
      https://github.com/llvm/llvm-project/commit/09ff41a087760ea7e80b8e5390a05101c5a5b929
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2022-03-18 (Fri, 18 Mar 2022)

  Changed paths:
    A lldb/packages/Python/lldbsuite/test/eventlistener.py
    M lldb/test/API/functionalities/diagnostic_reporting/TestDiagnosticReporting.py
    M lldb/test/API/functionalities/progress_reporting/TestProgressReporting.py

  Log Message:
  -----------
  [lldb/test] Add events listener helper class to lldbtest

This patch introduces a generic helper class that will listen for
event in a background thread and match it against a source broadcaster.

If the event received matches the source broadcaster, the event is
queued up in a list that the user can access later on.

The motivation behind this is to easily test new kinds of events
(i.e. Swift type-system progress events). However, this patch also
updates `TestProgressReporting.py` and `TestDiagnosticReporting.py`
to make use of this new helper class.

Differential Revision: https://reviews.llvm.org/D121977

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>




More information about the All-commits mailing list