blob: 1caff2a37148bb7d9483f86fa81d7ecfe7629019 [file] [log] [blame]
Justin Bognerb7c95342014-08-07 18:40:37 +00001// RUN: not FileCheck -check-prefix=FOO %s </dev/null 2>&1 | FileCheck -check-prefix=EMPTY-ERR %s
2// RUN: not FileCheck -check-prefix=NOFOO %s </dev/null 2>&1 | FileCheck -check-prefix=EMPTY-ERR %s
3// RUN: not FileCheck -check-prefix=FOO -allow-empty %s </dev/null 2>&1 | FileCheck -check-prefix=NO-EMPTY-ERR -check-prefix=NOT-FOUND %s
4// RUN: FileCheck -check-prefix=NOFOO -allow-empty %s </dev/null 2>&1 | FileCheck -allow-empty -check-prefix=NO-EMPTY-ERR %s
5
6; FOO: foo
7; NOFOO-NOT: foo
8
9; EMPTY-ERR: FileCheck error: '-' is empty.
Xinliang David Li921e2ae2016-05-28 00:03:35 +000010; EMPTY-ERR-NEXT: FileCheck command line: {{.*}}FileCheck{{.*}}-check-prefix={{.*}}FOO {{.*}}check-empty.txt
Justin Bognerb7c95342014-08-07 18:40:37 +000011; NO-EMPTY-ERR-NOT: FileCheck error: '-' is empty.
Joel E. Denny9074a872018-07-13 03:08:23 +000012; NOT-FOUND: error: FOO: expected string not found in input