[llvm] 8f8c495 - [FileCheck] Add missing %ProtectFileCheckOutput to FileCheck tests

Joel E. Denny via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 31 14:29:35 PDT 2020


Author: Joel E. Denny
Date: 2020-03-31T17:29:11-04:00
New Revision: 8f8c4950fead500bf1086f36f21b0b52e93b2b05

URL: https://github.com/llvm/llvm-project/commit/8f8c4950fead500bf1086f36f21b0b52e93b2b05
DIFF: https://github.com/llvm/llvm-project/commit/8f8c4950fead500bf1086f36f21b0b52e93b2b05.diff

LOG: [FileCheck] Add missing %ProtectFileCheckOutput to FileCheck tests

I'm committing this fixup without review because it's an obvious
continuation of D65121 (committed at f471eb8e99b5).

Added: 
    

Modified: 
    llvm/test/FileCheck/numeric-defines-diagnostics.txt
    llvm/test/FileCheck/numeric-expression.txt

Removed: 
    


################################################################################
diff  --git a/llvm/test/FileCheck/numeric-defines-diagnostics.txt b/llvm/test/FileCheck/numeric-defines-diagnostics.txt
index da8c9cc8884e..ddced3721f1d 100644
--- a/llvm/test/FileCheck/numeric-defines-diagnostics.txt
+++ b/llvm/test/FileCheck/numeric-defines-diagnostics.txt
@@ -28,6 +28,7 @@ NUMERRCLITRAIL-NEXT:Global define #1: #VALUE+2=10 (parsed as: {{\[\[#VALUE\+2:10
      NUMERRCLITRAIL-NEXT:                                                  ^
 
 ; Invalid format for variable.
+RUN: %ProtectFileCheckOutput \
 RUN: not FileCheck -D#,VALUE=10 --input-file %s %s 2>&1 \
 RUN:   | FileCheck %s --strict-whitespace --match-full-lines --check-prefix NUMERRCLIFMT
 

diff  --git a/llvm/test/FileCheck/numeric-expression.txt b/llvm/test/FileCheck/numeric-expression.txt
index 14e378281793..8396b6e2de11 100644
--- a/llvm/test/FileCheck/numeric-expression.txt
+++ b/llvm/test/FileCheck/numeric-expression.txt
@@ -41,8 +41,10 @@ CHECK-LABEL: DEF FMT SPC
 CHECK-NEXT: [[# %x , VAR2a : ]]
 
 ; Numeric variable definition with unsupported matching format.
+RUN: %ProtectFileCheckOutput \
 RUN: not FileCheck --check-prefixes ERR,INVALID-FMT-SPEC1 --input-file %s %s 2>&1 \
 RUN:   | FileCheck --check-prefix INVALID-FMT-SPEC-MSG1 --strict-whitespace %s
+RUN: %ProtectFileCheckOutput \
 RUN: not FileCheck --check-prefixes ERR,INVALID-FMT-SPEC2 --input-file %s %s 2>&1 \
 RUN:   | FileCheck --check-prefix INVALID-FMT-SPEC-MSG2 --strict-whitespace %s
 
@@ -182,6 +184,7 @@ CHECK-NEXT: [[# %u, VAR2]]
 CHECK-NEXT: [[# %u, VAR3]]
 
 ; Conflicting implicit format.
+RUN: %ProtectFileCheckOutput \
 RUN: not FileCheck --check-prefixes CHECK,FMT-CONFLICT --input-file %s %s 2>&1 \
 RUN:   | FileCheck --strict-whitespace --check-prefix FMT-CONFLICT-MSG %s
 
@@ -359,6 +362,7 @@ SAME-LINE-USE-MSG2-NEXT: {{S}}AME-LINE-USE2-NEXT: {{\[\[#VAR2:VAR1\+1\]\] \[\[#V
 SAME-LINE-USE-MSG2-NEXT:        {{^}}                                         ^{{$}}
 
 ; Invalid change of format in variable redefinition.
+RUN: %ProtectFileCheckOutput \
 RUN: not FileCheck --check-prefix REDEF-NEW-FMT --input-file %s %s 2>&1 \
 RUN:   | FileCheck --strict-whitespace --check-prefix REDEF-NEW-FMT-MSG %s
 


        


More information about the llvm-commits mailing list