[PATCH] D20925: FileCheck: print input on errors

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 5 09:46:33 PDT 2016


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
>
>


More information about the llvm-commits mailing list