[Lldb-commits] [lldb] [lldb][test] Fix running TestWithLimitDebugInfo.py on Windows (PR #150579)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 28 02:21:33 PDT 2025
================
@@ -1775,16 +1775,20 @@ def no_reason(_):
attrvalue, "__no_debug_info_test__", False
):
# If any debug info categories were explicitly tagged, assume that list to be
- # authoritative. If none were specified, try with all debug
- # info formats.
- all_dbginfo_categories = set(
+ # authoritative. If none were specified, try with all debug info formats.
+ test_method_categories = getattr(attrvalue, "categories", [])
+ dbginfo_categories = set(test_method_categories) & set(
test_categories.debug_info_categories.keys()
)
- categories = (
- set(getattr(attrvalue, "categories", [])) & all_dbginfo_categories
- )
- if not categories:
- categories = [
+ if dbginfo_categories:
+ other_categories = [
+ category
+ for category in test_method_categories
+ if category not in dbginfo_categories
+ ]
+ else:
+ other_categories = test_method_categories
+ dbginfo_categories = [
----------------
labath wrote:
```suggestion
dbginfo_categories = test_method_categories & all_dbginfo_categories
other_categories = test_method_categories.difference(all_dbginfo_categories)
if not dbginfo_categories:
dbginfo_categories = [
```
https://github.com/llvm/llvm-project/pull/150579
More information about the lldb-commits
mailing list