Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Code climate: fix next batch of "; " occurences
  • Loading branch information
stanislaw committed Dec 5, 2021
commit 55480af99f4176cfe0aeb1e72e64f02477c7f0b3
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK: hello1
; CHECK: hello2
CHECK: hello1
CHECK: hello2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK: hello1
; CHECK: hello2
CHECK: hello1
CHECK: hello2
Original file line number Diff line number Diff line change
@@ -1 +1 @@
; CHECK: {{^Hello world$}}
CHECK: {{^Hello world$}}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; CHECK: Hello world
CHECK: Hello world

4 changes: 2 additions & 2 deletions tests/integration/tests/examples/lit-and-filecheck/01-pass.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
; RUN: gcc "%s" -o %S/hello-world-1 && %S/hello-world-1 | %FILECHECK_EXEC %s
; CHECK: Hello world
RUN: gcc "%s" -o %S/hello-world-1 && %S/hello-world-1 | %FILECHECK_EXEC %s
CHECK: Hello world
*/

#include <stdio.h>
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/tests/examples/lit-and-filecheck/02-fail.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
; RUN: gcc "%s" -o %S/hello-world-2 && %S/hello-world-2 | %FILECHECK_EXEC %s; test $? = 1
; CHECK: Wrong line
RUN: gcc "%s" -o %S/hello-world-2 && %S/hello-world-2 | %FILECHECK_EXEC %s; test $? = 1
CHECK: Wrong line
*/

#include <stdio.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: printf "String1" | %FILECHECK_EXEC "%s" --check-prefix STRING1
; RUN: printf "String2" | %FILECHECK_EXEC "%s" --check-prefix STRING2
; STRING1: String1
; STRING2: String2
RUN: printf "String1" | %FILECHECK_EXEC "%s" --check-prefix STRING1
RUN: printf "String2" | %FILECHECK_EXEC "%s" --check-prefix STRING2
STRING1: String1
STRING2: String2
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
; RUN: %expect_exit 2 %FILECHECK_EXEC | %FILECHECK_TESTER_EXEC "%s" --match-full-lines
RUN: %expect_exit 2 %FILECHECK_EXEC | %FILECHECK_TESTER_EXEC "%s" --match-full-lines

; CHECK: <check-file> not specified
CHECK: <check-file> not specified
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %expect_exit 2 %FILECHECK_EXEC "file/does/not/exist" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines
RUN: %expect_exit 2 %FILECHECK_EXEC "file/does/not/exist" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines

; CHECK: Could not open check file 'file/does/not/exist': No such file or directory
; CHECK-EMPTY:
CHECK: Could not open check file 'file/does/not/exist': No such file or directory
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %printf "" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines
RUN: %printf "" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines

; CHECK: error: no check strings found with prefix 'CHECK:'
; CHECK-EMPTY
CHECK: error: no check strings found with prefix 'CHECK:'
CHECK-EMPTY
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %printf "" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines
RUN: %printf "" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s" --match-full-lines

; CHECK: error: no check strings found with prefix 'CHECK:'
; CHECK-EMPTY
CHECK: error: no check strings found with prefix 'CHECK:'
CHECK-EMPTY
Original file line number Diff line number Diff line change
@@ -1 +1 @@
; CHECK-NOT: {{.+}}
CHECK-NOT: {{.+}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
; CHECK-NOT: {{.+}}
CHECK-NOT: {{.+}}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s"
RUN: %cat "%S/filecheck.input" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" | %FILECHECK_TESTER_EXEC "%s"

; CHECK: FileCheck error: '-' is empty.
; CHECK: FileCheck command line: {{.*}}.check{{$}}
CHECK: FileCheck error: '-' is empty.
CHECK: FileCheck command line: {{.*}}.check{{$}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix STRING1
; RUN: %cat "%S/filecheck.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix STRING2
; RUN: %cat "%S/filecheck.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix STRING3
RUN: %cat "%S/filecheck.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix STRING1
RUN: %cat "%S/filecheck.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix STRING2
RUN: %cat "%S/filecheck.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix STRING3
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix FOO | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix FOO | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:error: no check strings found with prefix 'FOO:'
; CHECK-EMPTY:
CHECK:error: no check strings found with prefix 'FOO:'
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: %cat "%S/filecheck.input" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix "GARBAGE1.23.4.2" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines
RUN: %cat "%S/filecheck.input" | %expect_exit 2 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix "GARBAGE1.23.4.2" | %FILECHECK_TESTER_EXEC "%s" --strict-whitespace --match-full-lines

; CHECK:Supplied check-prefix is invalid! Prefixes must be unique and start with a letter and contain only alphanumeric characters, hyphens and underscores
; CHECK-EMPTY:
CHECK:Supplied check-prefix is invalid! Prefixes must be unique and start with a letter and contain only alphanumeric characters, hyphens and underscores
CHECK-EMPTY:
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; CHECK: string 1
; OTHER-CHECK: string 2
; ANOTHER-CHECK: string 3
; YET_ANOTHER-CHECK: string 4
CHECK: string 1
OTHER-CHECK: string 2
ANOTHER-CHECK: string 3
YET_ANOTHER-CHECK: string 4
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; RUN: %cat "%S/filecheck.1.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix CHECK
; RUN: %cat "%S/filecheck.2.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix CHECK
RUN: %cat "%S/filecheck.1.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix CHECK
RUN: %cat "%S/filecheck.2.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix CHECK

; RUN: %cat "%S/filecheck.2.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix OTHER-CHECK
; RUN: %cat "%S/filecheck.3.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix OTHER-CHECK
RUN: %cat "%S/filecheck.2.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix OTHER-CHECK
RUN: %cat "%S/filecheck.3.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix OTHER-CHECK

; RUN: %cat "%S/filecheck.3.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix ANOTHER-CHECK
; RUN: %cat "%S/filecheck.4.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix ANOTHER-CHECK
RUN: %cat "%S/filecheck.3.input" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" --check-prefix ANOTHER-CHECK
RUN: %cat "%S/filecheck.4.input" | %expect_exit 1 %FILECHECK_EXEC "%S/filecheck.check" --check-prefix ANOTHER-CHECK