diff options
| author | Sam Clegg <sbc@chromium.org> | 2017-06-16 23:29:54 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2017-06-16 23:29:54 +0000 |
| commit | 20c7d432a432c84e15c28b72e8f947e812aaa3e4 (patch) | |
| tree | c9d0ea761bac5bf3fdd78a9473d5f5e9558860a4 /llvm/test/tools/obj2yaml/invalid_input_file.test | |
| parent | a63178f756db11bdccf4dab17886546e33472237 (diff) | |
| download | bcm5719-llvm-20c7d432a432c84e15c28b72e8f947e812aaa3e4.tar.gz bcm5719-llvm-20c7d432a432c84e15c28b72e8f947e812aaa3e4.zip | |
obj2yaml: Improve error reporting
Previously only the error codes were reported which
meant that useful information about malformed inputs
was not shown.
Differential Revision: https://reviews.llvm.org/D34008
llvm-svn: 305609
Diffstat (limited to 'llvm/test/tools/obj2yaml/invalid_input_file.test')
| -rw-r--r-- | llvm/test/tools/obj2yaml/invalid_input_file.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/tools/obj2yaml/invalid_input_file.test b/llvm/test/tools/obj2yaml/invalid_input_file.test new file mode 100644 index 00000000000..573e753c8a8 --- /dev/null +++ b/llvm/test/tools/obj2yaml/invalid_input_file.test @@ -0,0 +1,4 @@ +# RUN: not obj2yaml %p/path/does/not/exist 2>&1 | FileCheck %s + +# Don't check the OS-dependent message "No such file or directory". +# CHECK: Error reading file: {{.*}}/path/does/not/exist: {{.*}} |

