Make FileCheck return 2 in case of an error as documented,

instead of 1 or true (?!)

llvm-svn: 169001
This commit is contained in:
Eli Bendersky 2012-11-30 13:51:33 +00:00
parent 9d0412334e
commit 8e1c647787
1 changed files with 2 additions and 2 deletions

View File

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