diff options
| author | Fangrui Song <maskray@google.com> | 2019-08-20 15:00:07 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-08-20 15:00:07 +0000 |
| commit | ebd50291e8cf5911eb9c2da54389d93312caadd2 (patch) | |
| tree | 634bec0c919b3d8259468a624ae198bfcc708ebf /llvm/test/tools/llvm-objcopy | |
| parent | a90ee0eeb6abb32a641caa56976f4cc2f7d27975 (diff) | |
| download | bcm5719-llvm-ebd50291e8cf5911eb9c2da54389d93312caadd2.tar.gz bcm5719-llvm-ebd50291e8cf5911eb9c2da54389d93312caadd2.zip | |
[llvm-objcopy] Append '\n' to warning messages
Currently the warning message of `llvm-strip %t.o %t.o` does not include
the trailing newline. Fix this by appending a '\n'.
This is the only warning llvm-objcopy and llvm-strip can issue.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D66475
llvm-svn: 369391
Diffstat (limited to 'llvm/test/tools/llvm-objcopy')
| -rw-r--r-- | llvm/test/tools/llvm-objcopy/ELF/same-file-strip.test | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/same-file-strip.test b/llvm/test/tools/llvm-objcopy/ELF/same-file-strip.test index 304ecaf0e1f..9381e8f0ccc 100644 --- a/llvm/test/tools/llvm-objcopy/ELF/same-file-strip.test +++ b/llvm/test/tools/llvm-objcopy/ELF/same-file-strip.test @@ -9,10 +9,11 @@ # ERR: error: cannot specify '-' as an input file more than once -# RUN: llvm-strip %t %t 2>&1 | FileCheck -check-prefix=WARN %s -DFILE=%t -# RUN: llvm-strip %t %t %t 2>&1 | FileCheck -check-prefix=WARN %s -DFILE=%t +# RUN: cp %t %t2 +# RUN: llvm-strip %t %t %t %t2 %t2 2>&1 | FileCheck -check-prefix=WARN %s -DFILE=%t -DFILE2=%t2 -# WARN: warning: '[[FILE]]' was already specified +# WARN: warning: '[[FILE]]' was already specified +# WARN-NEXT: warning: '[[FILE2]]' was already specified --- !ELF FileHeader: |

