This is an archive of the discontinued LLVM Phabricator instance.

FileCheck: print input on errors
AbandonedPublic

Authored by dvyukov on Jun 2 2016, 10:46 AM.

Details

Reviewers
llvm-commits
Summary

FileCheck output is unactionable without intput. Print input on errors.

Are there any downsides of this?
I am ready to bargain about details like output only stdin.

Diff Detail

Event Timeline

dvyukov updated this revision to Diff 59422.Jun 2 2016, 10:46 AM
dvyukov retitled this revision from to FileCheck: print input on errors.
dvyukov updated this object.
dvyukov added a reviewer: llvm-commits.
silvas added a subscriber: silvas.Jun 4 2016, 5:48 PM

My only concern would maybe be verbosity (sometimes the input could be
quite large and drown out everything else). But overall this solves an
issue that I've run into too.

I would also suggest to print something more clear like "Begin FileCheck
Input: ***" << .... << "End FileCheck Input: ***" to
distinguish it from the surrounding and be easy to search for (in case of a
very large input).

  • Sean Silva

FYI, see also http://reviews.llvm.org/D20105

Answered there. I don't understand why printing input is not the default.

dvyukov abandoned this revision.Apr 15 2021, 1:21 AM