2020-11-03 02:26:28 +08:00
|
|
|
; RUN: %ProtectFileCheckOutput 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: %ProtectFileCheckOutput 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
|
2020-10-29 08:44:13 +08:00
|
|
|
; RUN: FileCheck --allow-unused-prefixes=true --check-prefixes=P1,P2 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt
|
2021-02-03 07:18:00 +08:00
|
|
|
; RUN: FileCheck --allow-unused-prefixes=false --allow-unused-prefixes=true --check-prefixes=P1,P2 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt
|
2021-02-09 05:37:03 +08:00
|
|
|
; RUN: not FileCheck --check-prefixes=P1,P2 --input-file %S/Inputs/one-check.txt %S/Inputs/one-check.txt
|
2020-10-29 08:44:13 +08:00
|
|
|
|
|
|
|
; MISSING-ONE: error: no check strings found with prefix 'P2:'
|
2020-11-03 00:50:34 +08:00
|
|
|
; MISSING-MORE: error: no check strings found with prefixes 'P2:', 'P3:'
|