File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
bolt/test/binary-analysis/AArch64 Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 44# Verify that an error message is provided if an input file is missing or incorrect
55
66RUN: not llvm-bolt-binary-analysis 2>&1 | FileCheck -check-prefix=NOFILEARG %s
7- NOFILEARG: llvm-bolt-binary-analysis: Not enough positional command line arguments specified!
8- NOFILEARG-NEXT: Must specify at least 1 positional argument: See: {{.*}}llvm-bolt-binary-analysis --help
7+ NOFILEARG: llvm-bolt-binary-analysis{{(\.exe)?}} : Not enough positional command line arguments specified!
8+ NOFILEARG-NEXT: Must specify at least 1 positional argument: See: {{.*}}llvm-bolt-binary-analysis{{(\.exe)?}} --help
99
1010RUN: not llvm-bolt-binary-analysis non-existing-file 2>&1 | FileCheck -check-prefix=NONEXISTINGFILEARG %s
11- NONEXISTINGFILEARG: llvm-bolt-binary-analysis: 'non-existing-file': No such file or directory.
11+ # Don't check the OS-dependent message "No such file or directory".
12+ NONEXISTINGFILEARG: llvm-bolt-binary-analysis{{(\.exe)?}}: 'non-existing-file': {{.*}}
1213
1314RUN: not llvm-bolt-binary-analysis %p/Inputs/dummy.txt 2>&1 | FileCheck -check-prefix=NOELFFILEARG %s
14- NOELFFILEARG: llvm-bolt-binary-analysis: '{{.*}}/Inputs/dummy.txt': The file was not recognized as a valid object file.
15+ NOELFFILEARG: llvm-bolt-binary-analysis{{(\.exe)?}} : '{{.*}}/Inputs/dummy.txt': The file was not recognized as a valid object file.
1516
1617RUN: %clang %cflags -Wl,--emit-relocs %p/../../Inputs/asm_foo.s %p/../../Inputs/asm_main.c -o %t.exe
1718RUN: llvm-bolt-binary-analysis %t.exe 2>&1 | FileCheck -check-prefix=VALIDELFFILEARG --allow-empty %s
@@ -26,7 +27,7 @@ RUN: llvm-bolt-binary-analysis --help 2>&1 | FileCheck -check-prefix=HELP %s
2627
2728HELP: OVERVIEW: BinaryAnalysis
2829HELP-EMPTY:
29- HELP-NEXT: USAGE: llvm-bolt-binary-analysis [options] <executable>
30+ HELP-NEXT: USAGE: llvm-bolt-binary-analysis{{(\.exe)?}} [options] <executable>
3031HELP-EMPTY:
3132HELP-NEXT: OPTIONS:
3233HELP-EMPTY:
You can’t perform that action at this time.
0 commit comments