[llvm] [z/OS] Modify regex in error message to match on z/OS. (PR #194020)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 8 08:27:01 PDT 2026
================
@@ -18,7 +18,7 @@
# CHECK: Command Output (stderr):
# CHECK-NEXT: --
# CHECK-NOT: --
-# CHECK: cat{{(_64)?(\.exe)?}}: {{(cannot open does-not-exist|.*does-not-exist.*: No such file or directory)}}
+# CHECK: cat{{(_64)?(\.exe)?}}: {{(cannot open does-not-exist|.*does-not-exist.*: .*No such file or directory)}}
----------------
sujianIBM wrote:
Would you please be more specific about
> when the cannot open <file> message is used you could use the if syntax on the RUN step to select between the two instead of using a regex.
Do you mean to use `if` to check on which platforms the test is run and decide which error message to expect based on that?
If so, does it unnecessarily complicate the RUN line? I am not sure whether that is a better solution than regex.
Thanks!
https://github.com/llvm/llvm-project/pull/194020
More information about the llvm-commits
mailing list