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 4
4
# Verify that an error message is provided if an input file is missing or incorrect
5
5
6
6
RUN: 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
9
9
10
10
RUN: 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': {{.*}}
12
13
13
14
RUN: 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.
15
16
16
17
RUN: %clang %cflags -Wl,--emit-relocs %p/../../Inputs/asm_foo.s %p/../../Inputs/asm_main.c -o %t.exe
17
18
RUN: 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
26
27
27
28
HELP: OVERVIEW: BinaryAnalysis
28
29
HELP-EMPTY:
29
- HELP-NEXT: USAGE: llvm-bolt-binary-analysis [options] <executable>
30
+ HELP-NEXT: USAGE: llvm-bolt-binary-analysis{{(\.exe)?}} [options] <executable>
30
31
HELP-EMPTY:
31
32
HELP-NEXT: OPTIONS:
32
33
HELP-EMPTY:
You can’t perform that action at this time.
0 commit comments