diff options
author | Kevin Enderby <enderby@apple.com> | 2016-08-05 18:19:40 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2016-08-05 18:19:40 +0000 |
commit | 600fb3f28eb5e1a3ad5e04118e74cdd65def4aa3 (patch) | |
tree | 82243b582e31930d055fd580daeff2a8f3c1f75b /llvm/test/tools/llvm-size/basic.test | |
parent | 0f4f0c5d5378703a7d0156120ddf75e3546e41b1 (diff) | |
download | bcm5719-llvm-600fb3f28eb5e1a3ad5e04118e74cdd65def4aa3.tar.gz bcm5719-llvm-600fb3f28eb5e1a3ad5e04118e74cdd65def4aa3.zip |
Add the first of what will be a long line of additional error checks for invalid Mach-O files.
This is where an LC_SEGMENT load command has a fileoff field that
extends past the end of the file.
Also fix llvm-nm and llvm-size to remove the errorToErrorCode() call so error messages are printed.
And needed to update a few test cases now that they do print the error messages just a
bit differently.
llvm-svn: 277845
Diffstat (limited to 'llvm/test/tools/llvm-size/basic.test')
-rw-r--r-- | llvm/test/tools/llvm-size/basic.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-size/basic.test b/llvm/test/tools/llvm-size/basic.test index 88b8dcbcbff..c53d7e0134f 100644 --- a/llvm/test/tools/llvm-size/basic.test +++ b/llvm/test/tools/llvm-size/basic.test @@ -1,2 +1,2 @@ RUN: not llvm-size %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s -ENOENT: {{.*}}llvm-size{{(\.EXE|\.exe)?}}: error reading file: {{[Nn]}}o such file or directory +ENOENT: {{.*}}llvm-size{{(\.EXE|\.exe)?}}: {{.*}}basic.test.tmp.blah {{[Nn]}}o such file or directory |