[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://r
[lldb][tests] Automatically call compute_mydir (NFC)Eliminate boilerplate of having each test manually assign to `mydir` by calling`compute_mydir` in lldbtest.py.Differential Revision: https://reviews.llvm.org/D128077
show more ...
[lldb/test] Add events listener helper function to lldbtestThis patch introduces 2 new lldb utility functions:- lldbutil.start_listening_from: This can be called in the test setup to create a li
[lldb/test] Add events listener helper function to lldbtestThis 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 alsoupdates `TestProgressReporting.py` and `TestDiagnosticReporting.py`to make use of these new helper functions.Differential Revision: https://reviews.llvm.org/D122193Signed-off-by: Med Ismail Bennani <[email protected]>
Revert "[lldb/test] Add events listener helper class to lldbtest"It removes the "wait-until-event-thread-stops" logic, which makesTestDiagnosticReporting.py flaky.This reverts commits 09ff41a087
Revert "[lldb/test] Add events listener helper class to lldbtest"It removes the "wait-until-event-thread-stops" logic, which makesTestDiagnosticReporting.py flaky.This reverts commits 09ff41a087760ea7e80b8e5390a05101c5a5b929 andacdd41b4590935e39208a941fbac7889d778e8e5.
[lldb/test] Add events listener helper class to lldbtestThis patch introduces a generic helper class that will listen forevent in a background thread and match it against a source broadcaster.If
[lldb/test] Add events listener helper class to lldbtestThis patch introduces a generic helper class that will listen forevent in a background thread and match it against a source broadcaster.If the event received matches the source broadcaster, the event isqueued 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 alsoupdates `TestProgressReporting.py` and `TestDiagnosticReporting.py`to make use of this new helper class.Differential Revision: https://reviews.llvm.org/D121977Signed-off-by: Med Ismail Bennani <[email protected]>
[lldb] Expose diagnostic events through the SB APIExpose diagnostic events through the SB API. Unlike the progress events,I opted to use a SBStructuredData so that we can add fields in thefuture.
[lldb] Expose diagnostic events through the SB APIExpose diagnostic events through the SB API. Unlike the progress events,I opted to use a SBStructuredData so that we can add fields in thefuture.Differential revision: https://reviews.llvm.org/D121818