aboutsummaryrefslogtreecommitdiff
path: root/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2012-11-30 13:51:33 +0000
committerEli Bendersky <eliben@google.com>2012-11-30 13:51:33 +0000
commit7f8e76f5140be7cc9ed1cb66cdcdedfa28147641 (patch)
treeb937868560c37da7b6fe88d9e415e83e2a00b17e /utils/FileCheck/FileCheck.cpp
parent09af5b8c3e5261b030f7d1015beac7a6e636f319 (diff)
Make FileCheck return 2 in case of an error as documented,
instead of 1 or true (?!) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/FileCheck/FileCheck.cpp')
-rw-r--r--utils/FileCheck/FileCheck.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/FileCheck/FileCheck.cpp b/utils/FileCheck/FileCheck.cpp
index c5524656f6..0dc8432dc9 100644
--- a/utils/FileCheck/FileCheck.cpp
+++ b/utils/FileCheck/FileCheck.cpp
@@ -729,13 +729,13 @@ int main(int argc, char **argv) {
MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), File)) {
errs() << "Could not open input file '" << InputFilename << "': "
<< ec.message() << '\n';
- return true;
+ return 2;
}
MemoryBuffer *F = File.take();
if (F->getBufferSize() == 0) {
errs() << "FileCheck error: '" << InputFilename << "' is empty.\n";
- return 1;
+ return 2;
}
// Remove duplicate spaces in the input file if requested.