File tree 3 files changed +17
-17
lines changed
3 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 3
3
# Check empty comment prefix.
4
4
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \
5
5
RUN: -comment-prefixes= | \
6
- RUN: FileCheck -check-prefix=PREFIX- EMPTY %s
6
+ RUN: FileCheck -check-prefix=EMPTY-PREFIX %s
7
7
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \
8
8
RUN: -comment-prefixes=,FOO | \
9
- RUN: FileCheck -check-prefix=PREFIX- EMPTY %s
9
+ RUN: FileCheck -check-prefix=EMPTY-PREFIX %s
10
10
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \
11
11
RUN: -comment-prefixes=FOO, | \
12
- RUN: FileCheck -check-prefix=PREFIX- EMPTY %s
12
+ RUN: FileCheck -check-prefix=EMPTY-PREFIX %s
13
13
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \
14
14
RUN: -comment-prefixes=FOO,,BAR | \
15
- RUN: FileCheck -check-prefix=PREFIX- EMPTY %s
16
- PREFIX- EMPTY: error: supplied comment prefix must not be the empty string
15
+ RUN: FileCheck -check-prefix=EMPTY-PREFIX %s
16
+ EMPTY-PREFIX : error: supplied comment prefix must not be the empty string
17
17
18
18
# Check invalid characters in comment prefix.
19
19
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \
Original file line number Diff line number Diff line change 1
- # Comment prefixes plus check directive suffixes are not comment directives
2
- # and are treated as plain text.
1
+ # Comment prefixes plus check directive suffixes are forbidden.
2
+ # FIXME: currently not verified bq ValidatePrefixes missing defaulted comment prefixes?
3
3
4
4
RUN: echo foo > %t.in
5
5
RUN: echo bar >> %t.in
@@ -12,11 +12,11 @@ RUN: FileCheck -check-prefix=CHECK1 %s
12
12
CHECK1: .chk:1:18: remark: CHECK: expected string found in input
13
13
CHECK1: .chk:2:17: remark: CHECK: expected string found in input
14
14
15
- # But we can define them as comment prefixes.
15
+ # But we can define them as comment prefixes; still forbidden .
16
16
17
17
RUN: %ProtectFileCheckOutput \
18
18
RUN: FileCheck -dump-input=never -vv -comment-prefixes=COM,RUN,RUN-NOT %t.chk < %t.in 2>&1 | \
19
19
RUN: FileCheck -check-prefix=CHECK2 %s
20
20
21
- CHECK2: .chk:1:18: remark: CHECK: expected string found in input
21
+ CHECK2: error: supplied comment prefix must not end with directive: '-NOT', prefix: 'RUN-NOT'
22
22
CHECK2-NOT: .chk:2
Original file line number Diff line number Diff line change @@ -593,16 +593,16 @@ CALL-MISSING-ARGUMENT-MSG-NEXT: {{C}}ALL-MISSING-ARGUMENT-NEXT: {{\[\[#add\(NUMV
593
593
CALL-MISSING-ARGUMENT-MSG-NEXT: {{^}} ^{{$}}
594
594
595
595
RUN: %ProtectFileCheckOutput \
596
- RUN: not FileCheck -D#NUMVAR=10 --check-prefix CALL-WRONG-ARGUMENT-COUNT --input-file %s %s 2>&1 \
597
- RUN: | FileCheck --strict-whitespace --check-prefix CALL-WRONG-ARGUMENT-COUNT -MSG %s
596
+ RUN: not FileCheck -D#NUMVAR=10 --check-prefix CALL-WRONG-ARGUMENT-NUM --input-file %s %s 2>&1 \
597
+ RUN: | FileCheck --strict-whitespace --check-prefix CALL-WRONG-ARGUMENT-NUM -MSG %s
598
598
599
- CALL WRONG ARGUMENT COUNT
599
+ CALL WRONG ARGUMENT NUM
600
600
30
601
- CALL-WRONG-ARGUMENT-COUNT -LABEL: CALL WRONG ARGUMENT COUNT
602
- CALL-WRONG-ARGUMENT-COUNT -NEXT: [[#add(NUMVAR)]]
603
- CALL-WRONG-ARGUMENT-COUNT -MSG: numeric-expression.txt:[[#@LINE-1]]:36 : error: function 'add' takes 2 arguments but 1 given
604
- CALL-WRONG-ARGUMENT-COUNT -MSG-NEXT: {{C}}ALL-WRONG-ARGUMENT-COUNT -NEXT: {{\[\[#add\(NUMVAR\)\]\]}}
605
- CALL-WRONG-ARGUMENT-COUNT -MSG-NEXT: {{^}} ^{{$}}
601
+ CALL-WRONG-ARGUMENT-NUM -LABEL: CALL WRONG ARGUMENT NUM
602
+ CALL-WRONG-ARGUMENT-NUM -NEXT: [[#add(NUMVAR)]]
603
+ CALL-WRONG-ARGUMENT-NUM -MSG: numeric-expression.txt:[[#@LINE-1]]:34 : error: function 'add' takes 2 arguments but 1 given
604
+ CALL-WRONG-ARGUMENT-NUM -MSG-NEXT: {{C}}ALL-WRONG-ARGUMENT-NUM -NEXT: {{\[\[#add\(NUMVAR\)\]\]}}
605
+ CALL-WRONG-ARGUMENT-NUM -MSG-NEXT: {{^}} ^{{$}}
606
606
607
607
RUN: %ProtectFileCheckOutput \
608
608
RUN: not FileCheck -D#NUMVAR=10 --check-prefix CALL-UNDEFINED-FUNCTION --input-file %s %s 2>&1 \
You can’t perform that action at this time.
0 commit comments