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.
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
1 is definitely not a good default. If you can't/don't want to use zero, then I'd recommend at least 10 seconds.