blob: b25ecb89a318123a62561ffc541127470437ba3f [file] [log] [blame]
Joel E. Dennye8618742018-11-06 22:07:03 +00001; Create a case that produces a simple diagnostic.
2; RUN: echo foo > %t.in
3; CHECK: foo
4; CHECK: bar
5
Joel E. Denny6b969962018-11-06 22:42:10 +00006; RUN: env FILECHECK_OPTS= \
Joel E. Dennye8618742018-11-06 22:07:03 +00007; RUN: not FileCheck %s -input-file %t.in 2>&1 \
8; RUN: | FileCheck -check-prefix QUIET %s
9
Joel E. Denny6b969962018-11-06 22:42:10 +000010; RUN: env FILECHECK_OPTS=-v \
Joel E. Dennye8618742018-11-06 22:07:03 +000011; RUN: not FileCheck %s -input-file %t.in 2>&1 \
12; RUN: | FileCheck -check-prefix VERB %s
13
14; QUIET-NOT: remark: {{CHECK}}: expected string found in input
15; VERB: remark: {{CHECK}}: expected string found in input