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
4 # RUN: not llvm-strip %S/non-existent 2>&1 | FileCheck --check-prefix=ERR %s -DTOOL=strip
6 # ERR: llvm-[[TOOL]]{{(\.exe)?}}: error: '{{.*}}': {{[Nn]}}o such file or directory
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