mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-01 13:37:55 +00:00
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
This commit is contained in:
parent
09af5b8c3e
commit
7f8e76f514
@ -729,13 +729,13 @@ int main(int argc, char **argv) {
|
|||||||
MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), File)) {
|
MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), File)) {
|
||||||
errs() << "Could not open input file '" << InputFilename << "': "
|
errs() << "Could not open input file '" << InputFilename << "': "
|
||||||
<< ec.message() << '\n';
|
<< ec.message() << '\n';
|
||||||
return true;
|
return 2;
|
||||||
}
|
}
|
||||||
MemoryBuffer *F = File.take();
|
MemoryBuffer *F = File.take();
|
||||||
|
|
||||||
if (F->getBufferSize() == 0) {
|
if (F->getBufferSize() == 0) {
|
||||||
errs() << "FileCheck error: '" << InputFilename << "' is empty.\n";
|
errs() << "FileCheck error: '" << InputFilename << "' is empty.\n";
|
||||||
return 1;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove duplicate spaces in the input file if requested.
|
// Remove duplicate spaces in the input file if requested.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user