File: suppresses-checks.txt

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (33 lines) | stat: -rw-r--r-- 1,605 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Comment directives successfully comment out check directives.

# Check all default comment prefixes.
# Check that a comment directive at the beginning/end of the file is handled.
# Check that the preceding/following line's check directive is not affected.
RUN: echo 'foo'                    >  %t-1.in
RUN: echo 'COM: CHECK: bar'        >  %t-1.chk
RUN: echo 'CHECK: foo'             >> %t-1.chk
RUN: echo 'RUN: echo "CHECK: baz"' >> %t-1.chk
RUN: %ProtectFileCheckOutput FileCheck -dump-input=never -vv %t-1.chk < %t-1.in 2>&1 | \
RUN:   FileCheck -DCHECK_LINE=2 %s

# Check the case of one user-specified comment prefix.
# Check that a comment directive not at the beginning of a line is handled.
RUN: echo 'foo'                                      >  %t-2.in
RUN: echo 'CHECK: foo'                               >  %t-2.chk
RUN: echo 'letters then space MY-PREFIX: CHECK: bar' >> %t-2.chk
RUN: %ProtectFileCheckOutput \
RUN: FileCheck -dump-input=never -vv %t-2.chk -comment-prefixes=MY-PREFIX < %t-2.in 2>&1 | \
RUN:   FileCheck -DCHECK_LINE=1 %s

# Check the case of multiple user-specified comment prefixes.
RUN: echo 'foo'               >  %t-3.in
RUN: echo 'Bar_2: CHECK: Bar' >  %t-3.chk
RUN: echo 'CHECK: foo'        >> %t-3.chk
RUN: echo 'Foo_1: CHECK: Foo' >> %t-3.chk
RUN: echo 'Baz_3: CHECK: Baz' >> %t-3.chk
RUN: %ProtectFileCheckOutput \
RUN: FileCheck -dump-input=never -vv %t-3.chk -comment-prefixes=Foo_1,Bar_2 \
RUN:           -comment-prefixes=Baz_3 < %t-3.in 2>&1 | \
RUN:   FileCheck -DCHECK_LINE=2 %s

CHECK: .chk:[[CHECK_LINE]]:8: remark: CHECK: expected string found in input