[PATCH] D90631: [FileCheck] Use %ProtectFileCheckOutput in allow-unused-prefixes.txt
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 2 10:27:35 PST 2020
mtrofin created this revision.
mtrofin added reviewers: dblaikie, jhenderson.
Herald added subscribers: llvm-commits, thopre.
Herald added a project: LLVM.
mtrofin requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90631
Files:
llvm/test/FileCheck/allow-unused-prefixes.txt
Index: llvm/test/FileCheck/allow-unused-prefixes.txt
===================================================================
--- llvm/test/FileCheck/allow-unused-prefixes.txt
+++ llvm/test/FileCheck/allow-unused-prefixes.txt
@@ -1,10 +1,10 @@
-; RUN: not FileCheck --allow-unused-prefixes=false --check-prefixes=P1,P2 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt 2>&1 | FileCheck --check-prefix=MISSING-ONE %s
-; RUN: not FileCheck --allow-unused-prefixes=false --check-prefixes=P1,P2,P3 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt 2>&1 | FileCheck --check-prefix=MISSING-MORE %s
-; RUN: FileCheck --allow-unused-prefixes=true --check-prefixes=P1,P2 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt
+; RUN: not %ProtectFileCheckOutput FileCheck --allow-unused-prefixes=false --check-prefixes=P1,P2 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt 2>&1 | %ProtectFileCheckOutput FileCheck --check-prefix=MISSING-ONE %s
+; RUN: not %ProtectFileCheckOutput FileCheck --allow-unused-prefixes=false --check-prefixes=P1,P2,P3 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt 2>&1 | %ProtectFileCheckOutput FileCheck --check-prefix=MISSING-MORE %s
+; RUN: %ProtectFileCheckOutput FileCheck --allow-unused-prefixes=true --check-prefixes=P1,P2 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt
;; Note: the default will be changed to 'false', at which time this run line
;; should be changed accordingly.
-; RUN: FileCheck --check-prefixes=P1,P2 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt
+; RUN: %ProtectFileCheckOutput FileCheck --check-prefixes=P1,P2 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt
; MISSING-ONE: error: no check strings found with prefix 'P2:'
; MISSING-MORE: error: no check strings found with prefixes 'P2:', 'P3:'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90631.302330.patch
Type: text/x-patch
Size: 1851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201102/460ae44d/attachment.bin>
More information about the llvm-commits
mailing list