Skip to content

Commit

Permalink
Merge pull request #139 from stanislaw/implicit-check-not
Browse files Browse the repository at this point in the history
Support more tests on Windows by switching to %printf (part 2)
  • Loading branch information
stanislaw authored Apr 25, 2020
2 parents b033158 + 2612364 commit 17d133a
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: printf "String1\nString2" | %expect_exit 1 %FILECHECK_EXEC "%S/CHECK-EMPTY.check" | %FILECHECK_EXEC "%s"
; RUN: %printf "String1\nString2" | %expect_exit 1 %FILECHECK_EXEC "%S/CHECK-EMPTY.check" | %FILECHECK_EXEC "%s"

; CHECK: {{^.*}}CHECK-EMPTY.check:2:13: error: CHECK-EMPTY: expected string not found in input
; CHECK: CHECK-EMPTY:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
if config.is_llvm_filecheck_test or config.is_windows:
if config.is_llvm_filecheck_test:
config.unsupported = True
Original file line number Diff line number Diff line change
@@ -1 +1 @@
; RUN: printf "String1\n\nString2" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/CHECK-EMPTY.check"
; RUN: %printf "String1\n\nString2" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/CHECK-EMPTY.check"

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; RUN: printf "String1\nfoo\nString2" | %expect_exit 1 %FILECHECK_EXEC "%S/CHECK-NEXT.check" | %FILECHECK_EXEC "%s"
; RUN: %printf "String1\nfoo\nString2" | %expect_exit 1 %FILECHECK_EXEC "%S/CHECK-NEXT.check" | %FILECHECK_EXEC "%s"

; CHECK: {{.*}}CHECK-NEXT.check:2:13: error: CHECK-NEXT: is not on the line after the previous match
; CHECK: CHECK-NEXT: String2
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
; RUN: printf "String1\nString2" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/CHECK-NEXT.check"
; RUN: %printf "String1\nString2" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/CHECK-NEXT.check"

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
; RUN: printf "String4" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/CHECK-NOT.check"
; RUN: %printf "String4" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/CHECK-NOT.check"

This file was deleted.

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
; RUN: printf "\n" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check" 2>&1
; RUN: %printf "\n" | %expect_exit 0 --expect-no-content %FILECHECK_EXEC "%S/filecheck.check"

0 comments on commit 17d133a

Please sign in to comment.