Skip to content

Commit 06f8a49

Browse files
committed
[SystemZ][z/OS] Fix No such file or directory expression error
On z/OS, the following error message is not matched correctly in lit tests. This patch updates the CHECK expression to match the end period successfully. ``` EDC5129I No such file or directory. ``` Differential Revision: https://reviews.llvm.org/D94239
1 parent bd122f6 commit 06f8a49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/tools/llvm-libtool-darwin/filelist.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@
6565
# RUN: not llvm-libtool-darwin -static -o %t.lib -filelist %t.invalid-list.txt 2>&1 | \
6666
# RUN: FileCheck %s --check-prefix=FILE-ERROR -DFILE=no-such-file
6767

68-
# FILE-ERROR: error: '[[FILE]]': {{[nN]}}o such file or directory
68+
# FILE-ERROR: error: '[[FILE]]': {{.*}}{{[nN]}}o such file or directory
6969

7070
## Check that an error is thrown when the directory exists but does not contain the requested file:
7171
# RUN: not llvm-libtool-darwin -static -o %t.lib -filelist %t.invalid-list.txt,%t/dirname 2>&1 | \
7272
# RUN: FileCheck %s --check-prefix=DIR-ERROR -DDIR=%t/dirname -DFILE=no-such-file
7373

74-
# DIR-ERROR: error: '[[DIR]]{{[/\\]}}[[FILE]]': {{[nN]}}o such file or directory
74+
# DIR-ERROR: error: '[[DIR]]{{[/\\]}}[[FILE]]': {{.*}}{{[nN]}}o such file or directory
7575

7676
## Check that an error is thrown when a file is in the cwd but dirname is specified:
7777
# RUN: yaml2obj %S/Inputs/input2.yaml -o %basename_t.tmp-input2.o

0 commit comments

Comments
 (0)