1 ## This test shows that we include the tool name in error/warning messages.
3 # RUN: not llvm-objcopy %S/non-existent 2>&1 | FileCheck --check-prefix=ERR %s -DTOOL=objcopy -DMSG=%errc_ENOENT
4 # RUN: not llvm-strip %S/non-existent 2>&1 | FileCheck --check-prefix=ERR %s -DTOOL=strip -DMSG=%errc_ENOENT
6 # ERR: llvm-[[TOOL]]{{(\.exe)?}}: error: '{{.*}}': [[MSG]]
8 ## Currently llvm-objcopy does not issue warnings, so it is not tested.
10 # RUN: yaml2obj %s -o %t
11 # RUN: llvm-strip %t %t 2>&1 | FileCheck --check-prefix=WARN %s
13 # WARN: llvm-strip{{(\.exe)?}}: warning: '{{.*}}' was already specified