This is an archive of the discontinued LLVM Phabricator instance.

Make syntax tree test print the line number when it fails
ClosedPublic

Authored by gribozavr on Jun 3 2020, 9:07 AM.

Details

Summary

The syntax tree test uses a helper function that executes all testing
assertions. When an assertion fails, the only line number that gets
printed to the log refers to the helper function. After this change, we
would also get the line number of the EXPECT_TRUE macro invocation
(unfortunately, the line number of the last token of it, not the first
one, but there's not much I can do about it).

Diff Detail

Event Timeline

gribozavr created this revision.Jun 3 2020, 9:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2020, 9:07 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
eduucaldas accepted this revision.Jun 4 2020, 12:50 AM
This revision is now accepted and ready to land.Jun 4 2020, 12:50 AM
hlopko accepted this revision.Jun 4 2020, 1:07 AM

Thanks!

This revision was automatically updated to reflect the committed changes.