[PATCH] D20925: FileCheck: print input on errors

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 5 10:02:45 PDT 2016


1) the output is less verbose
2) The actionable stuff is captured in one script.

isn't it what you want?

David

On Sun, Jun 5, 2016 at 9:46 AM, Dmitry Vyukov <dvyukov at google.com> wrote:

> Why is it better? When you don't want to see the input?
>
> On Sun, Jun 5, 2016 at 6:25 PM, Xinliang David Li <xinliangli at gmail.com>
> wrote:
> > I think the better approach is to capture the input and re-run command
> line
> > in a temporary file by default.
> > 1) create a re-run file: rerun_script
> > 2) dump the following to rerun_script:
> > cat << EOF > input_tmp
> >   ..... input here
> > EOF
> >
> > cat input_tmp | <FileCheck Command>
> >
> > 3) in error message, show " To rerun, run rerun_script ".
> >
> >  David
> >
> >
> > On Sun, Jun 5, 2016 at 8:49 AM, Dmitry Vyukov via llvm-commits
> > <llvm-commits at lists.llvm.org> wrote:
> >>
> >> dvyukov added a comment.
> >>
> >> > FYI, see also http://reviews.llvm.org/D20105
> >>
> >>
> >> Answered there. I don't understand why printing input is not the
> default.
> >>
> >>
> >> http://reviews.llvm.org/D20925
> >>
> >>
> >>
> >> _______________________________________________
> >> llvm-commits mailing list
> >> llvm-commits at lists.llvm.org
> >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160605/5b28c934/attachment.html>


More information about the llvm-commits mailing list