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).

0 commit comments

Comments
 (0)