[PATCH] D20925: FileCheck: print input on errors
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 2 10:46:26 PDT 2016
dvyukov created this revision.
dvyukov added a reviewer: llvm-commits.
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.
http://reviews.llvm.org/D20925
Files:
utils/FileCheck/FileCheck.cpp
Index: utils/FileCheck/FileCheck.cpp
===================================================================
--- utils/FileCheck/FileCheck.cpp
+++ utils/FileCheck/FileCheck.cpp
@@ -1407,5 +1407,8 @@
break;
}
+ if (hasError)
+ errs() << "Input:" << '\n' << Buffer.str() << '\n';
+
return hasError ? 1 : 0;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20925.59422.patch
Type: text/x-patch
Size: 323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160602/9ea72647/attachment.bin>
More information about the llvm-commits
mailing list