[PATCH] D111320: [test] Use host platform specific error message substitution
Abhina Sree via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 7 08:42:40 PDT 2021
abhina.sreeskantharajan created this revision.
abhina.sreeskantharajan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch modifies the testcase to use error substitution so it will pass on all platforms.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D111320
Files:
llvm/test/tools/llvm-tapi-diff/tapi-diff-misspelled-tbd.test
Index: llvm/test/tools/llvm-tapi-diff/tapi-diff-misspelled-tbd.test
===================================================================
--- llvm/test/tools/llvm-tapi-diff/tapi-diff-misspelled-tbd.test
+++ llvm/test/tools/llvm-tapi-diff/tapi-diff-misspelled-tbd.test
@@ -1,5 +1,5 @@
-; RUN: not llvm-tapi-diff %S/Inputs/v4A.tbd %S/Inputs/v4.tbd 2>&1 | FileCheck %s
+; RUN: not llvm-tapi-diff %S/Inputs/v4A.tbd %S/Inputs/v4.tbd 2>&1 | FileCheck %s -DMSG=%errc_ENOENT
-; CHECK: {{.*}}: error: {{.*}}v4.tbd: {{[Nn]}}o such file or directory
+; CHECK: {{.*}}: error: {{.*}}v4.tbd: [[MSG]]
; CHECK-NOT: error:
; CHECK-NOT: warning:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111320.377874.patch
Type: text/x-patch
Size: 630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211007/2c6fdfc7/attachment-0001.bin>
More information about the llvm-commits
mailing list