llvm-project/lldb/packages/Python/lldbsuite
Med Ismail Bennani 9216baf87d [lldb/test] Add events listener helper function to lldbtest
This patch introduces 2 new lldb utility functions:
- lldbutil.start_listening_from: This can be called in the test setup to
  create a listener and set it up for a specific event mask and add it
  to the user-provided broadcaster's list.
- lldbutil.fetch_next_event: This will use fetch a single event from the
  provided istener and return it if it matches the provided broadcaster.

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 these new helper functions.

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

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
2022-03-23 12:30:09 -07:00
..
support [lldb/test] Replace shlex.join with shlex.quote 2021-10-29 13:42:06 +02:00
test [lldb/test] Add events listener helper function to lldbtest 2022-03-23 12:30:09 -07:00
test_event [lldb/test] Replace shlex.join with shlex.quote 2021-10-29 13:42:06 +02:00
__init__.py [lldb/test] Use realpath consistently for test root file paths. 2020-08-05 11:35:37 -07:00