Skip to content

Commit 05eaff1

Browse files
authored
[test] Use host platform specific error message substitution in lit tests (llvm#65328)
On z/OS, the following error message is not matched correctly in lit tests. `EDC5129I No such file or directory.` This patch uses a lit config substitution to check for platform specific error messages.
1 parent 11171d8 commit 05eaff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/tools/llvm-symbolizer/get-input-file.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN: FileCheck --input-file=%t.2.err --check-prefix=NOADDR %s
1111

1212
# Two items specified, check if the first one is an existing file.
1313
RUN: llvm-symbolizer "foo 400" 2>%t.3.err | FileCheck %s --check-prefix=NOSOURCE
14-
RUN: FileCheck --input-file=%t.3.err --check-prefix=NOTFOUND %s
14+
RUN: FileCheck --input-file=%t.3.err --check-prefix=NOTFOUND -DMSG=%errc_ENOENT %s
1515

1616
# FILE: must be followed by a file name.
1717
RUN: llvm-symbolizer "FILE:" 2>%t.4.err | FileCheck %s --check-prefix=NOSOURCE
@@ -36,7 +36,7 @@ NOFILE: error: no input filename has been specified
3636

3737
NOADDR: error: 'foo': no module offset has been specified
3838

39-
NOTFOUND: error: 'foo': {{[nN]}}o such file or directory
39+
NOTFOUND: error: 'foo': [[MSG]]
4040

4141
MISSING-FILE: error: 'FILE:': must be followed by an input file
4242

0 commit comments

Comments
 (0)