[PATCH] D20925: FileCheck: print input on errors

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 5 09:25:19 PDT 2016


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/9dccf395/attachment.html>


More information about the llvm-commits mailing list