This is an archive of the discontinued LLVM Phabricator instance.

[llvm][NFC] Make test less brittle
ClosedPublic

Authored by urnathan on Jul 29 2023, 12:22 PM.

Details

Summary

This test checks attributes by looking at the attribute dump. That's both brittle and won't detect (some kinds of) attribute changes on functions.

The attribute tests are unnecessary -- delete them

Diff Detail

Event Timeline

urnathan created this revision.Jul 29 2023, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2023, 12:22 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
urnathan requested review of this revision.Jul 29 2023, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2023, 12:22 PM

I didn't add those, and they shouldn't be there. You can just delete these check lines.

urnathan updated this revision to Diff 546803.Aug 3 2023, 4:50 AM
urnathan edited the summary of this revision. (Show Details)

Updated diff to check the attribute table via CHECK-DAG. This is now checking more than before.

I didn't add those, and they shouldn't be there. You can just delete these check lines.

Oh, wilco, and sigh, need to get phabricator to tell me I have replies :)

urnathan updated this revision to Diff 546808.Aug 3 2023, 4:59 AM
urnathan edited the summary of this revision. (Show Details)

Here you go, ok? -- I'm gonna blame git blame :)

nikic accepted this revision.Aug 7 2023, 1:42 AM

LGTM

This revision is now accepted and ready to land.Aug 7 2023, 1:42 AM
This revision was landed with ongoing or failed builds.Aug 8 2023, 5:48 PM
This revision was automatically updated to reflect the committed changes.