[FileCheck] Add missing %ProtectFileCheckOutput to FileCheck tests
authorJoel E. Denny <jdenny.ornl@gmail.com>
Wed, 10 Jun 2020 14:22:24 +0000 (10:22 -0400)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Wed, 10 Jun 2020 16:40:35 +0000 (12:40 -0400)
This is a continuation of D65121 (committed at f471eb8e99b5).

llvm/test/FileCheck/numeric-expression.txt

index 7859e20..fd4a2e5 100644 (file)
@@ -426,6 +426,7 @@ REDEF-NEW-FMT-MSG-NEXT: {{R}}EDEF-NEW-FMT-NEXT: {{\[\[#%X,UNSI:\]\]}}
 REDEF-NEW-FMT-MSG-NEXT:    {{^}}                              ^{{$}}
 
 ; Numeric expression with overflow.
+RUN: %ProtectFileCheckOutput \
 RUN: not FileCheck --check-prefix OVERFLOW --input-file %s %s 2>&1 \
 RUN:   | FileCheck --check-prefix OVERFLOW-MSG --strict-whitespace %s
 
@@ -438,6 +439,7 @@ OVERFLOW-MSG-NEXT: {{O}}VERFLOW-NEXT: BIGVAR: {{\[\[#BIGVAR:0x8000000000000000\+
 OVERFLOW-MSG-NEXT:    {{^}}                          ^{{$}}
 
 ; Numeric expression with underflow.
+RUN: %ProtectFileCheckOutput \
 RUN: not FileCheck --check-prefix UNDERFLOW --input-file %s %s 2>&1 \
 RUN:   | FileCheck --check-prefix UNDERFLOW-MSG --strict-whitespace %s