Skip to content

Commit 689aaba

Browse files
committed
[SystemZ][z/OS] Fix No such file or directory expression error matching in lit tests
On z/OS, the following error message is not matched correctly in lit tests. This patch updates the CHECK expression to match successfully. ``` EDC5129I No such file or directory. ``` Reviewed By: muiez Differential Revision: https://reviews.llvm.org/D94239
1 parent 911961c commit 689aaba

34 files changed

+45
-45
lines changed

clang/test/CodeGen/basic-block-sections.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ int another(int a) {
4141
//
4242
// UNIQUE: .section .text.world.world.__part.1,
4343
// UNIQUE: .section .text.another.another.__part.1,
44-
// ERROR: error: unable to load basic block sections function list: '{{[Nn]}}o such file or directory'
44+
// ERROR: error: unable to load basic block sections function list: '{{.*}}{{[Nn]}}o such file or directory'

clang/test/CodeGen/ubsan-blacklist-vfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// RUN: %clang_cc1 -fsanitize=unsigned-integer-overflow -ivfsoverlay %t-vfsoverlay.yaml -fsanitize-blacklist=%/T/only-virtual-file.blacklist -emit-llvm %s -o - | FileCheck %s --check-prefix=FUNC
99

1010
// RUN: not %clang_cc1 -fsanitize=unsigned-integer-overflow -ivfsoverlay %t-vfsoverlay.yaml -fsanitize-blacklist=%/T/invalid-virtual-file.blacklist -emit-llvm %s -o - 2>&1 | FileCheck %s --check-prefix=INVALID-MAPPED-FILE
11-
// INVALID-MAPPED-FILE: invalid-virtual-file.blacklist': {{[Nn]}}o such file or directory
11+
// INVALID-MAPPED-FILE: invalid-virtual-file.blacklist': {{.*}}{{[Nn]}}o such file or directory
1212

1313
// RUN: not %clang_cc1 -fsanitize=unsigned-integer-overflow -ivfsoverlay %t-vfsoverlay.yaml -fsanitize-blacklist=%t-nonexistent.blacklist -emit-llvm %s -o - 2>&1 | FileCheck %s --check-prefix=INVALID
14-
// INVALID: nonexistent.blacklist': {{[Nn]}}o such file or directory
14+
// INVALID: nonexistent.blacklist': {{.*}}{{[Nn]}}o such file or directory
1515

1616
unsigned i;
1717

clang/test/Frontend/stats-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
// CHECK: }
66

77
// RUN: %clang_cc1 -emit-llvm -o %t -stats-file=%t.doesnotexist/bla %s 2>&1 | FileCheck -check-prefix=OUTPUTFAIL %s
8-
// OUTPUTFAIL: warning: unable to open statistics output file '{{.*}}doesnotexist{{.}}bla': '{{[Nn]}}o such file or directory'
8+
// OUTPUTFAIL: warning: unable to open statistics output file '{{.*}}doesnotexist{{.}}bla': '{{.*}}{{[Nn]}}o such file or directory'

lld/test/COFF/driver.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RUN: not lld-link nosuchfile.obj >& %t.log
22
# RUN: FileCheck -check-prefix=MISSING %s < %t.log
3-
MISSING: 'nosuchfile.obj': {{[Nn]}}o such file or directory
3+
MISSING: 'nosuchfile.obj': {{.*}}{{[Nn]}}o such file or directory
44

55
# RUN: lld-link --version | FileCheck -check-prefix=VERSION %s
66
VERSION: {{LLD [0-9]+\.[0-9]+}}

lld/test/COFF/manifestinput-error.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
# RUN: /manifestuac:"level='requireAdministrator'" \
88
# RUN: /manifestinput:%p/Inputs/manifestinput.test %t.obj 2>&1 | FileCheck %s
99

10-
# CHECK: error: unable to find mt.exe in PATH: {{[Nn]}}o such file or directory
10+
# CHECK: error: unable to find mt.exe in PATH: {{.*}}{{[Nn]}}o such file or directory

lld/test/COFF/nodefaultlib.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
# RUN: /nodefaultlib:std64.lib >& %t.log || true
2020
# RUN: FileCheck -check-prefix=CHECK3 %s < %t.log
2121

22-
CHECK1: error: could not open 'hello64.obj': {{[Nn]}}o such file or directory
23-
CHECK2: error: could not open 'hello64': {{[Nn]}}o such file or directory
22+
CHECK1: error: could not open 'hello64.obj': {{.*}}{{[Nn]}}o such file or directory
23+
CHECK2: error: could not open 'hello64': {{.*}}{{[Nn]}}o such file or directory
2424
CHECK3: error: undefined symbol: MessageBoxA
2525
CHECK3-NEXT: >>> referenced by {{.*}}hello64.obj:(main)
2626

lld/test/COFF/pdb-type-server-invalid-signature.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
# RUN: cp %S/Inputs/pdb-diff-cl.pdb %T
2323
# RUN: lld-link %t3.obj -out:%t3.exe -debug -pdb:%t3.pdb -nodefaultlib -entry:main 2>&1 | FileCheck %s -check-prefix=INVALID-PATH -allow-empty
2424

25-
# INVALID-PATH-NOT: warning: Cannot use debug info for '{{.*}}3.obj' [LNK4099]
26-
# INVALID-PATH-NOT: failed to load reference 'c:\some_invalid_path_AABB98765\pdb-diff-cl.pdb': {{[Nn]}}o such file or directory
25+
# INVALID-PATH-NOT: warning: Cannot use debug info for '{{.*}}3.obj' [LNK4099]
26+
# INVALID-PATH-NOT: failed to load reference 'c:\some_invalid_path_AABB98765\pdb-diff-cl.pdb': {{.*}}{{[Nn]}}o such file or directory
2727

2828
--- !COFF
2929
header:

lld/test/ELF/archive-thin-missing-member.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99

1010
# Test error when loading symbols from missing thin archive member.
1111
# RUN: not ld.lld --entry=_Z1fi %t-no-syms.a -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR1
12-
# ERR1: {{.*}}-no-syms.a: could not get the buffer for a child of the archive: '{{.*}}.o': {{[Nn]}}o such file or directory
12+
# ERR1: {{.*}}-no-syms.a: could not get the buffer for a child of the archive: '{{.*}}.o': {{.*}}{{[Nn]}}o such file or directory
1313

1414
# Test error when thin archive has symbol table but member is missing.
1515
# RUN: not ld.lld --entry=_Z1fi -m elf_amd64_fbsd %t-syms.a -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR2
16-
# ERR2: {{.*}}-syms.a: could not get the buffer for the member defining symbol f(int): '{{.*}}.o': {{[Nn]}}o such file or directory
16+
# ERR2: {{.*}}-syms.a: could not get the buffer for the member defining symbol f(int): '{{.*}}.o': {{.*}}{{[Nn]}}o such file or directory
1717
# RUN: not ld.lld --entry=_Z1fi --no-demangle -m elf_amd64_fbsd %t-syms.a -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR2MANGLE
18-
# ERR2MANGLE: {{.*}}-syms.a: could not get the buffer for the member defining symbol _Z1fi: '{{.*}}.o': {{[Nn]}}o such file or directory
18+
# ERR2MANGLE: {{.*}}-syms.a: could not get the buffer for the member defining symbol _Z1fi: '{{.*}}.o': {{.*}}{{[Nn]}}o such file or directory
1919

2020
# Test error when thin archive is linked using --whole-archive but member is missing.
2121
# RUN: not ld.lld --entry=_Z1fi --whole-archive %t-syms.a -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR3
22-
# ERR3: {{.*}}-syms.a: could not get the buffer for a child of the archive: '{{.*}}.o': {{[Nn]}}o such file or directory
22+
# ERR3: {{.*}}-syms.a: could not get the buffer for a child of the archive: '{{.*}}.o': {{.*}}{{[Nn]}}o such file or directory
2323

2424
.global _Z1fi
2525
_Z1fi:

lld/test/ELF/basic.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,15 @@ _start:
220220

221221
# RUN: not ld.lld %t.foo -o /dev/null 2>&1 | \
222222
# RUN: FileCheck --check-prefix=MISSING %s
223-
# MISSING: cannot open {{.*}}.foo: {{[Nn]}}o such file or directory
223+
# MISSING: cannot open {{.*}}.foo: {{.*}}{{[Nn]}}o such file or directory
224224

225225
# RUN: not ld.lld -o /dev/null 2>&1 | \
226226
# RUN: FileCheck --check-prefix=NO_INPUT %s
227227
# NO_INPUT: ld.lld{{.*}}: no input files
228228

229229
# RUN: not ld.lld %t.no.such.file -o /dev/null 2>&1 | \
230230
# RUN: FileCheck --check-prefix=CANNOT_OPEN %s
231-
# CANNOT_OPEN: cannot open {{.*}}.no.such.file: {{[Nn]}}o such file or directory
231+
# CANNOT_OPEN: cannot open {{.*}}.no.such.file: {{.*}}{{[Nn]}}o such file or directory
232232

233233
# RUN: not ld.lld --foo 2>&1 | FileCheck --check-prefix=UNKNOWN %s
234234
# UNKNOWN: unknown argument '--foo'

lld/test/ELF/symbol-ordering-file.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# RUN: not ld.lld --symbol-ordering-file=%t.nonexistent %t.o -o %t3.out 2>&1 | \
4444
# RUN: FileCheck %s --check-prefix=ERR -DFILE=%t.nonexistent
4545

46-
# ERR: error: cannot open [[FILE]]: {{[Nn]}}o such file or directory
46+
# ERR: error: cannot open [[FILE]]: {{.*}}{{[Nn]}}o such file or directory
4747

4848
## Show that an empty ordering file can be handled (symbols remain in their
4949
## normal order).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
RUN: llvm-symbolizer --obj=unexisting-file 0x1234 2>&1 | FileCheck %s
22

3-
CHECK: LLVMSymbolizer: error reading file: {{[Nn]}}o such file or directory
3+
CHECK: LLVMSymbolizer: error reading file: {{.*}}{{[Nn]}}o such file or directory

llvm/test/tools/dsymutil/X86/papertrail-warnings.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CHECK: DW_AT_name {{.*}}"/Inputs/basic1.macho.x86_64.o"
88
CHECK: DW_TAG_constant [2]
99
CHECK: DW_AT_name {{.*}}"dsymutil_warning"
1010
CHECK: DW_AT_artificial [DW_FORM_flag] (0x01)
11-
CHECK: DW_AT_const_value {{.*}}"unable to open object file: {{[Nn]}}o such file or directory"
11+
CHECK: DW_AT_const_value {{.*}}"unable to open object file: {{.*}}{{[Nn]}}o such file or directory"
1212
CHECK: NULL
1313
CHECK: Compile Unit:
1414
CHECK: DW_TAG_compile_unit [1] *
@@ -17,7 +17,7 @@ CHECK: DW_AT_name {{.*}}"/Inputs/basic2.macho.x86_64.o"
1717
CHECK: DW_TAG_constant [2]
1818
CHECK: DW_AT_name {{.*}}"dsymutil_warning"
1919
CHECK: DW_AT_artificial [DW_FORM_flag] (0x01)
20-
CHECK: DW_AT_const_value {{.*}}"unable to open object file: {{[Nn]}}o such file or directory"
20+
CHECK: DW_AT_const_value {{.*}}"unable to open object file: {{.*}}{{[Nn]}}o such file or directory"
2121
CHECK: NULL
2222
CHECK: Compile Unit:
2323
CHECK: DW_TAG_compile_unit [1] *
@@ -26,5 +26,5 @@ CHECK: DW_AT_name {{.*}}"/Inputs/basic3.macho.x86_64.o"
2626
CHECK: DW_TAG_constant [2]
2727
CHECK: DW_AT_name {{.*}}"dsymutil_warning"
2828
CHECK: DW_AT_artificial [DW_FORM_flag] (0x01)
29-
CHECK: DW_AT_const_value {{.*}}"unable to open object file: {{[Nn]}}o such file or directory"
29+
CHECK: DW_AT_const_value {{.*}}"unable to open object file: {{.*}}{{[Nn]}}o such file or directory"
3030
CHECK: NULL

llvm/test/tools/llvm-ar/missing-thin-archive-member.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# RUN: rm %t-temp.txt
1515
# RUN: not llvm-ar p %t-archive.a 2>&1 | FileCheck %s --check-prefix=DELETED
1616

17-
# DELETED: error: {{[Nn]}}o such file or directory
17+
# DELETED: error: {{.*}}{{[Nn]}}o such file or directory

llvm/test/tools/llvm-ar/replace.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
# RUN: not llvm-ar r %t/missing.a %t/missing.txt 2>&1 \
9292
# RUN: | FileCheck %s --check-prefix=MISSING-FILE -DFILE=%t/missing.txt
9393

94-
# MISSING-FILE: error: [[FILE]]: {{[Nn]}}o such file or directory
94+
# MISSING-FILE: error: [[FILE]]: {{.*}}{{[Nn]}}o such file or directory
9595

9696
## Create and Replace member of thin archive:
9797
# RUN: llvm-ar rcT %t/thin.a %t/1.o %t/2.o %t/3.o

llvm/test/tools/llvm-ar/response.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
# RUN: echo -e 'rc %/t.a blah\\foo' > %t-rsp.txt
3535
# RUN: not llvm-ar --rsp-quoting=windows @%t-rsp.txt 2>&1 | \
3636
# RUN: FileCheck %s --check-prefix=WIN
37-
# WIN: error: blah\foo: {{[Nn]}}o such file or directory
37+
# WIN: error: blah\foo: {{.*}}{{[Nn]}}o such file or directory
3838

3939
# RUN: not llvm-ar -rsp-quoting posix @%t-rsp.txt 2>&1 | \
4040
# RUN: FileCheck %s --check-prefix=POSIX
41-
# POSIX: error: blahfoo: {{[Nn]}}o such file or directory
41+
# POSIX: error: blahfoo: {{.*}}{{[Nn]}}o such file or directory

llvm/test/tools/llvm-cxxdump/trivial.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ ELF-I386-NEXT: _ZTV1A[8]: _ZN1A1fEv
6363
MIXEDARCOFF-I386: ??_7S@@6B@[0]: ??_R4S@@6B@
6464

6565
RUN: not llvm-cxxdump %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s
66-
ENOENT: {{.*}}.blah: error: {{[Nn]}}o such file or directory
66+
ENOENT: {{.*}}.blah: error: {{.*}}{{[Nn]}}o such file or directory

llvm/test/tools/llvm-lto2/X86/stats-file-option.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ define void @patatino() {
2222
; Try to save statistics to an invalid file.
2323
; RUN: not llvm-lto2 run %t1.bc -o %t.o -r %t1.bc,patatino,px \
2424
; RUN: -stats-file=%t2/foo.stats 2>&1 | FileCheck --check-prefix=ERROR %s
25-
; ERROR: LTO::run failed: {{[Nn]}}o such file or directory
25+
; ERROR: LTO::run failed: {{.*}}{{[Nn]}}o such file or directory

llvm/test/tools/llvm-mc/basic.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# RUN: not llvm-mc %t.blah -o /dev/null 2>&1 | FileCheck --check-prefix=ENOENT %s
22

3-
# ENOENT: {{.*}}.blah: {{[Nn]}}o such file or directory
3+
# ENOENT: {{.*}}.blah: {{.*}}{{[Nn]}}o such file or directory
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# RUN: not llvm-mca %t.blah -o /dev/null 2>&1 | FileCheck --check-prefix=ENOENT %s
22

3-
# ENOENT: {{.*}}.blah: {{[Nn]}}o such file or directory
3+
# ENOENT: {{.*}}.blah: {{.*}}{{[Nn]}}o such file or directory

llvm/test/tools/llvm-ml/basic.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# RUN: not llvm-ml %t.blah.asm /Fo /dev/null 2>&1 | FileCheck --check-prefix=ENOENT %s
22

3-
# ENOENT: {{.*}}.blah.asm: {{[Nn]}}o such file or directory
3+
# ENOENT: {{.*}}.blah.asm: {{.*}}{{[Nn]}}o such file or directory

llvm/test/tools/llvm-objcopy/COFF/add-section.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
## to be added does not exist.
6262
# RUN: not llvm-objcopy --add-section=.another.section=%t2 %t %t3 2>&1 | FileCheck -DFILE1=%t -DFILE2=%t2 %s --check-prefixes=ERR1
6363

64-
# ERR1: error: '[[FILE1]]': '[[FILE2]]': {{[Nn]}}o such file or directory
64+
# ERR1: error: '[[FILE1]]': '[[FILE2]]': {{.*}}{{[Nn]}}o such file or directory
6565

6666
## Another negative test for invalid --add-sections command line argument.
6767
# RUN: not llvm-objcopy --add-section=.another.section %t %t3 2>&1 | FileCheck %s --check-prefixes=ERR2

llvm/test/tools/llvm-objcopy/ELF/add-section.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Sections:
3939
## to be added does not exist.
4040
# RUN: not llvm-objcopy --add-section=.section.name=%t.missing %t %t.out 2>&1 | FileCheck -DFILE1=%t -DFILE2=%t.missing %s --check-prefixes=ERR1
4141

42-
# ERR1: error: '[[FILE1]]': '[[FILE2]]': {{[Nn]}}o such file or directory
42+
# ERR1: error: '[[FILE1]]': '[[FILE2]]': {{.*}}{{[Nn]}}o such file or directory
4343

4444
## Negative test for invalid --add-sections argument - missing '='.
4545
# RUN: not llvm-objcopy --add-section=.section.name %t %t.out 2>&1 | FileCheck %s --check-prefixes=ERR2

llvm/test/tools/llvm-objcopy/ELF/error-format.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# RUN: not llvm-objcopy %S/non-existent 2>&1 | FileCheck --check-prefix=ERR %s -DTOOL=objcopy
44
# RUN: not llvm-strip %S/non-existent 2>&1 | FileCheck --check-prefix=ERR %s -DTOOL=strip
55

6-
# ERR: llvm-[[TOOL]]{{(\.exe)?}}: error: '{{.*}}': {{[Nn]}}o such file or directory
6+
# ERR: llvm-[[TOOL]]{{(\.exe)?}}: error: '{{.*}}': {{.*}}{{[Nn]}}o such file or directory
77

88
## Currently llvm-objcopy does not issue warnings, so it is not tested.
99

llvm/test/tools/llvm-objcopy/MachO/add-section-error.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Error case 1: Nonexistent input file is specified by --add-section.
77
# RUN: not llvm-objcopy --add-section __TEXT,__text=%t.missing %t %t.nonexistent-file 2>&1 \
88
# RUN: | FileCheck %s -DINPUT=%t -DSECTION_DATA_FILE=%t.missing --check-prefix=NONEXSITENT-FILE
9-
# NONEXSITENT-FILE: error: '[[INPUT]]': '[[SECTION_DATA_FILE]]': {{[Nn]}}o such file or directory
9+
# NONEXSITENT-FILE: error: '[[INPUT]]': '[[SECTION_DATA_FILE]]': {{.*}}{{[Nn]}}o such file or directory
1010

1111
## Error case 2: Too long segment name.
1212
# RUN: not llvm-objcopy --add-section __TOOOOOOOOO_LONG,__text=%t.data %t %t.too-long-seg-name 2>&1 \

llvm/test/tools/llvm-objcopy/redefine-symbols.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# MISSING-SYM-NAME: error: {{.*}}.rename.txt:2: missing new symbol name
1515

1616
# RUN: not llvm-objcopy --redefine-syms %t.rename-none.txt %t /dev/null 2>&1 | FileCheck %s --check-prefix=NO-FILE
17-
# NO-FILE: error: '{{.*}}.rename-none.txt': {{[Nn]}}o such file or directory
17+
# NO-FILE: error: '{{.*}}.rename-none.txt': {{.*}}{{[Nn]}}o such file or directory
1818

1919
!ELF
2020
FileHeader:

llvm/test/tools/llvm-profdata/weight-instr.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ INVALID_WEIGHT: error: Input weight must be a positive integer.
7474

7575
4- Bad merge: input path does not exist
7676
RUN: not llvm-profdata merge -instr -weighted-input=3,%p/Inputs/does-not-exist.profdata -weighted-input=2,%p/Inputs/does-not-exist-either.profdata -o %t.out 2>&1 | FileCheck %s -check-prefix=INVALID_INPUT
77-
INVALID_INPUT: {{.*}}: {{.*}}does-not-exist.profdata: {{[Nn]}}o such file or directory
77+
INVALID_INPUT: {{.*}}: {{.*}}does-not-exist.profdata: {{.*}}{{[Nn]}}o such file or directory
7878

7979
5- No inputs
8080
RUN: not llvm-profdata merge -instr -o %t.out 2>&1 | FileCheck %s -check-prefix=NO_INPUT

llvm/test/tools/llvm-profdata/weight-sample.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ INVALID_WEIGHT: error: Input weight must be a positive integer.
4949

5050
4- Bad merge: input path does not exist
5151
RUN: not llvm-profdata merge -sample -weighted-input=3,%p/Inputs/does-not-exist.proftext -weighted-input=2,%p/Inputs/does-not-exist-either.proftext -o %t.out 2>&1 | FileCheck %s -check-prefix=INVALID_INPUT
52-
INVALID_INPUT: {{.*}}: {{.*}}does-not-exist.proftext: {{[Nn]}}o such file or directory
52+
INVALID_INPUT: {{.*}}: {{.*}}does-not-exist.proftext: {{.*}}{{[Nn]}}o such file or directory
5353

5454
5- No inputs
5555
RUN: not llvm-profdata merge -sample -o %t.out 2>&1 | FileCheck %s -check-prefix=NO_INPUT

llvm/test/tools/llvm-readobj/ELF/thin-archive-paths.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# RUN: rm a/b/1.o
1717
# RUN: not llvm-readobj --file-headers a/relative.a 2>&1 | FileCheck %s --check-prefix=ERR1
1818
# RUN: not llvm-readelf --file-headers a/relative.a 2>&1 | FileCheck %s --check-prefix=ERR1
19-
# ERR1: error: 'a/relative.a': 'b/1.o': {{[Nn]}}o such file or directory
19+
# ERR1: error: 'a/relative.a': 'b/1.o': {{.*}}{{[Nn]}}o such file or directory
2020

2121
# RUN: mkdir -p %t/c
2222
# RUN: yaml2obj %s -o a/b/1.o
@@ -30,7 +30,7 @@
3030
# RUN: rm a/b/1.o
3131
# RUN: not llvm-readobj --file-headers %/t/c/absolute.a 2>&1 | FileCheck %s --check-prefix=ERR2 -DDIR=%/t
3232
# RUN: not llvm-readelf --file-headers %/t/c/absolute.a 2>&1 | FileCheck %s --check-prefix=ERR2 -DDIR=%/t
33-
# ERR2: error: '[[DIR]]/c/absolute.a': '[[DIR]]/a/b/1.o': {{[Nn]}}o such file or directory
33+
# ERR2: error: '[[DIR]]/c/absolute.a': '[[DIR]]/a/b/1.o': {{.*}}{{[Nn]}}o such file or directory
3434

3535
--- !ELF
3636
FileHeader:

llvm/test/tools/llvm-readobj/basic.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
RUN: not llvm-readobj %t.blah 2>&1 | FileCheck --check-prefix=ENOENT -DTOOL=readobj %s
33
RUN: not llvm-readelf %t.blah 2>&1 | FileCheck --check-prefix=ENOENT -DTOOL=readelf %s
44

5-
ENOENT: llvm-[[TOOL]]{{(\.exe)?}}: error: '{{.*}}.blah': {{[Nn]}}o such file or directory
5+
ENOENT: llvm-[[TOOL]]{{(\.exe)?}}: error: '{{.*}}.blah': {{.*}}{{[Nn]}}o such file or directory
66

77
# Test case with no input file.
88
RUN: not llvm-readobj 2>&1 | FileCheck %s --check-prefix=NO-FILE

llvm/test/tools/llvm-readobj/thin-archive.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
# MISSING: File: {{.*}}1.o
6161
# MISSING: Format: elf64-x86-64
6262
# MISSING-NOT: File: {{.*}}3.o
63-
# ERR: error: '{{.*}}.a': '{{.*}}2.o': {{[Nn]}}o such file or directory
63+
# ERR: error: '{{.*}}.a': '{{.*}}2.o': {{.*}}{{[Nn]}}o such file or directory
6464

6565
--- !ELF
6666
FileHeader:

llvm/test/tools/llvm-size/no-input.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Show that llvm-size emits an error if passed in a non-existent file.
22

33
# RUN: not llvm-size %t.blah 2>&1 | FileCheck %s -DFILE=%t.blah --check-prefix=ENOENT
4-
# ENOENT: {{.*}}llvm-size{{.*}}: error: '[[FILE]]': {{[Nn]}}o such file or directory
4+
# ENOENT: {{.*}}llvm-size{{.*}}: error: '[[FILE]]': {{.*}}{{[Nn]}}o such file or directory
55

66
## Show that llvm-size reads a.out if not passed any file.
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
; RUN: not llvm-xray extract no-such-file 2>&1 | FileCheck %s
22

33
; CHECK: llvm-xray: Cannot extract instrumentation map from 'no-such-file'.
4-
; CHECK-NEXT: {{[Nn]}}o such file or directory
4+
; CHECK-NEXT: {{.*}}{{[Nn]}}o such file or directory
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# RUN: not obj2yaml %p/path/does/not/exist 2>&1 | FileCheck %s
22

3-
# CHECK: Error reading file: {{.*}}/path/does/not/exist: {{[Nn]}}o such file or directory
3+
# CHECK: Error reading file: {{.*}}/path/does/not/exist: {{.*}}{{[Nn]}}o such file or directory

llvm/test/tools/yaml2obj/output-file.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# RUN: not yaml2obj -o %p/path/does/not/exist 2>&1 | FileCheck %s
1111

12-
# CHECK: yaml2obj: error: failed to open '{{.*}}/path/does/not/exist': {{[Nn]}}o such file or directory
12+
# CHECK: yaml2obj: error: failed to open '{{.*}}/path/does/not/exist': {{.*}}{{[Nn]}}o such file or directory
1313

1414
!ELF
1515
FileHeader:

0 commit comments

Comments
 (0)