24 lines · plain
1// RUN: %ProtectFileCheckOutput \2// RUN: not FileCheck -check-prefix=FOO %s </dev/null 2>&1 \3// RUN: | FileCheck -check-prefix=EMPTY-ERR %s4//5// RUN: %ProtectFileCheckOutput \6// RUN: not FileCheck -check-prefix=NOFOO %s </dev/null 2>&1 \7// RUN: | FileCheck -check-prefix=EMPTY-ERR %s8//9// RUN: %ProtectFileCheckOutput \10// RUN: not FileCheck -check-prefix=FOO -allow-empty %s </dev/null 2>&1 \11// RUN: | FileCheck -check-prefix=NO-EMPTY-ERR -check-prefix=NOT-FOUND %s12//13// RUN: %ProtectFileCheckOutput \14// RUN: FileCheck -check-prefix=NOFOO -allow-empty %s </dev/null 2>&1 \15// RUN: | FileCheck -allow-empty -check-prefix=NO-EMPTY-ERR %s16 17; FOO: foo18; NOFOO-NOT: foo19 20; EMPTY-ERR: FileCheck error: '<stdin>' is empty.21; EMPTY-ERR-NEXT: FileCheck command line: {{.*}}{{F|f}}ile{{C|c}}heck{{.*}}-check-prefix={{.*}}FOO {{.*}}check-empty.txt22; NO-EMPTY-ERR-NOT: FileCheck error: '<stdin>' is empty.23; NOT-FOUND: error: FOO: expected string not found in input24