Skip to content

Commit 0447546

Browse files
klensyklensy
authored and
klensy
committed
filecheck: fix self tests for "forbid check prefixes end with directive name"
1 parent 7616cf8 commit 0447546

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

llvm/test/FileCheck/comment/bad-comment-prefix.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
# Check empty comment prefix.
44
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \
55
RUN: -comment-prefixes= | \
6-
RUN: FileCheck -check-prefix=PREFIX-EMPTY %s
6+
RUN: FileCheck -check-prefix=EMPTY-PREFIX %s
77
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \
88
RUN: -comment-prefixes=,FOO | \
9-
RUN: FileCheck -check-prefix=PREFIX-EMPTY %s
9+
RUN: FileCheck -check-prefix=EMPTY-PREFIX %s
1010
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \
1111
RUN: -comment-prefixes=FOO, | \
12-
RUN: FileCheck -check-prefix=PREFIX-EMPTY %s
12+
RUN: FileCheck -check-prefix=EMPTY-PREFIX %s
1313
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \
1414
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
1717

1818
# Check invalid characters in comment prefix.
1919
RUN: %ProtectFileCheckOutput not FileCheck /dev/null < /dev/null 2>&1 \

llvm/test/FileCheck/numeric-expression.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -593,16 +593,16 @@ CALL-MISSING-ARGUMENT-MSG-NEXT: {{C}}ALL-MISSING-ARGUMENT-NEXT: {{\[\[#add\(NUMV
593593
CALL-MISSING-ARGUMENT-MSG-NEXT: {{^}} ^{{$}}
594594

595595
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
598598

599-
CALL WRONG ARGUMENT COUNT
599+
CALL WRONG ARGUMENT NUM
600600
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: {{^}} ^{{$}}
606606

607607
RUN: %ProtectFileCheckOutput \
608608
RUN: not FileCheck -D#NUMVAR=10 --check-prefix CALL-UNDEFINED-FUNCTION --input-file %s %s 2>&1 \

0 commit comments

Comments
 (0)