This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Fix debug_info decorators for NO_DEBUG_INFO_TESTCASE
ClosedPublic

Authored by JDevlieghere on Apr 8 2022, 9:22 AM.

Details

Summary

Currently a NO_DEBUG_INFO_TESTCASE will return None as it's debug info
type, causing the decorator to consider it a match. If such a test case
is marked as an expected failure, the decorator will incorrectly cause
an XPASS.

I discovered this issue when I was trying to speed up our remote test
suite by running every test as a single variant.

Diff Detail

Event Timeline

JDevlieghere created this revision.Apr 8 2022, 9:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2022, 9:22 AM
JDevlieghere requested review of this revision.Apr 8 2022, 9:22 AM
mib accepted this revision.Apr 8 2022, 9:48 AM

Good catch! LGTM!

This revision is now accepted and ready to land.Apr 8 2022, 9:48 AM

I think this is actually a wider problem. I also ran into this recently (with triples), but didn't have time to create a patch yet. I don't think that None as the "actual" value should ever be considered a match (except when the pattern is None, I guess), regardless of whether it is a debug info variant, triple, or anything else. (None as a "pattern" should of course continue to match anything.)

I think this is actually a wider problem. I also ran into this recently (with triples), but didn't have time to create a patch yet. I don't think that None as the "actual" value should ever be considered a match (except when the pattern is None, I guess), regardless of whether it is a debug info variant, triple, or anything else. (None as a "pattern" should of course continue to match anything.)

Agreed. I tried that but that caused a bunch of test failures. It's probably worth investigating, but my current focus is addressing some issues with our on-device test suite.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 13 2022, 3:07 PM