llvm-capstone/lldb/packages/Python/lldbsuite
Jordan Rupprecht d0d0727104
[lldb][test] Apply @expectedFailureAll/@skipIf early for debug_info tests (#73067)
The @expectedFailureAll and @skipIf decorators will mark the test case
as xfail/skip if _all_ conditions passed in match, including debug_info.
* If debug_info is not one of the matching conditions, we can
immediately evaluate the check and decide if it should be decorated.
* If debug_info *is* present as a match condition, we need to defer
whether or not to decorate until when the `LLDBTestCaseFactory`
metaclass expands the test case into its potential variants. This is
still early enough that the standard `unittest` framework will recognize
the test as xfail/skip by the time the test actually runs.

TestDecorators exhibits the edge cases more thoroughly. With the
exception of `@expectedFailureIf` (added by this commit), all those test
cases pass prior to this commit.

This is a followup to 212a60ec37.
2024-01-19 10:50:05 -06:00
..
support [lldb] Remove use of __future__ in python 2023-08-14 14:14:48 -07:00
test [lldb][test] Apply @expectedFailureAll/@skipIf early for debug_info tests (#73067) 2024-01-19 10:50:05 -06:00
test_event [NFC][Py Reformat] Reformat python files in lldb 2023-05-25 12:54:09 -07:00
__init__.py [NFC][Py Reformat] Reformat python files in lldb 2023-05-25 12:54:09 -07:00