File tree Expand file tree Collapse file tree 6 files changed +34
-0
lines changed
tests/integration/tests/options/--strict-whitespace/CHECK_NOT
01_input_has_mixed_spaces_and_tabs
02_check_has_mixed_spaces_and_tabs Expand file tree Collapse file tree 6 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ ; CHECK-NOT: hello world hello world
Original file line number Diff line number Diff line change 1+ hello world hello world
Original file line number Diff line number Diff line change 1+ ; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check 2>&1; test $? = 1) | %FILECHECK_TESTER_EXEC %s --match-full-lines -check-prefix=NO_OPTION
2+ ; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check --strict-whitespace 2>&1; test $? = 0) | %FILECHECK_TESTER_EXEC %s --match-full-lines -check-prefix=OPTION
3+
4+ ; NO_OPTION: {{^.*}}FileCheck{{$}}
5+ ; NO_OPTION: {{^.*}}filecheck.check:1:14: error: CHECK-NOT: excluded string found in input{{$}}
6+ ; NO_OPTION: ; CHECK-NOT: hello world hello world
7+ ; NO_OPTION: ^
8+ ; NO_OPTION: {{^<stdin>:1:1: note: found here$}}
9+ ; NO_OPTION: hello world hello world
10+ ; NO_OPTION: ^~~~~~~~~~~~~~~~~~~~~~~
11+ ; TODO: error: OPTION-EMPTY is not on the line after the previous match
12+ ; OPTION-EMPTY
13+
14+ ; OPTION: {{^.*}}FileCheck{{$}}
15+ ; OPTION-EMPTY:
Original file line number Diff line number Diff line change 1+ ; CHECK: hello world hello world
Original file line number Diff line number Diff line change 1+ hello world hello world
Original file line number Diff line number Diff line change 1+ ; RUN: cat %S/filecheck.input | %FILECHECK_EXEC %S/filecheck.check | %FILECHECK_TESTER_EXEC %s --match-full-lines -check-prefix=NO_OPTION
2+ ; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check --strict-whitespace 2>&1; test $? = 1) | %FILECHECK_TESTER_EXEC %s --strict-whitespace --match-full-lines -check-prefix=OPTION
3+
4+ ; NO_OPTION: {{^.*}}FileCheck{{$}}
5+ ; NO_OPTION-EMPTY:
6+
7+ ; OPTION:{{^.*}}FileCheck{{$}}
8+ ; OPTION:{{^.*}}filecheck.check:1:10: error: CHECK: expected string not found in input{{$}}
9+ ; OPTION:; CHECK: hello world hello world
10+ ; OPTION: ^
11+ ; OPTION:{{^<stdin>:.*:.*: note: scanning from here$}}
12+ ; OPTION:hello world hello world
13+ ; OPTION:^
14+ ; TODO: error: OPTION-EMPTY is not on the line after the previous match
15+ ; OPTION-EMPTY
You can’t perform that action at this time.
0 commit comments