[PATCH] D103804: [test] Use host platform specific error message substitution
Abhina Sree via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 7 05:38:13 PDT 2021
abhina.sreeskantharajan created this revision.
Herald added a reviewer: jhenderson.
Herald added a subscriber: cmtice.
abhina.sreeskantharajan requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
This testcase is failing on z/OS because the regex doesn't match the spelling. This patch modifies the testcase to use the error substitution so it will pass on all platforms.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103804
Files:
llvm/test/tools/llvm-dwarfdump/X86/output.s
Index: llvm/test/tools/llvm-dwarfdump/X86/output.s
===================================================================
--- llvm/test/tools/llvm-dwarfdump/X86/output.s
+++ llvm/test/tools/llvm-dwarfdump/X86/output.s
@@ -12,10 +12,10 @@
^M
# RUN: touch %t3.txt^M
# RUN: chmod 444 %t3.txt^M
-# RUN: not llvm-dwarfdump -o=%t3.txt %t.o 2>&1 | FileCheck %s --check-prefix=ERROR1 -DFILE=%t3.txt^M
+# RUN: not llvm-dwarfdump -o=%t3.txt %t.o 2>&1 | FileCheck %s --check-prefix=ERROR1 -DFILE=%t3.txt -DMSG=%errc_EACCES^M
^M
-# RUN: not llvm-dwarfdump -o= %t.o 2>&1 | FileCheck %s --check-prefix=ERROR2^M
+# RUN: not llvm-dwarfdump -o= %t.o 2>&1 | FileCheck %s --check-prefix=ERROR2 -DMSG=%errc_ENOENT^M
^M
# CHECK: DW_TAG_compile_unit^M
-# ERROR1: unable to open output file [[FILE]]: {{[pP]}}ermission denied^M
-# ERROR2: unable to open output file : {{[nN]}}o such file or directory^M
+# ERROR1: unable to open output file [[FILE]]: [[MSG]]^M
+# ERROR2: unable to open output file : [[MSG]]^M
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103804.350255.patch
Type: text/x-patch
Size: 995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210607/bdb5c68c/attachment.bin>
More information about the llvm-commits
mailing list