summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authord0k <d0k@91177308-0d34-0410-b5e6-96231b3b80d8>2012-09-18 20:51:39 +0000
committerd0k <d0k@91177308-0d34-0410-b5e6-96231b3b80d8>2012-09-18 20:51:39 +0000
commit24f85f2471f21d5a107905de06ed030e4464c555 (patch)
tree435be6dd1a2086e0f4c70c69138da4a31cdfa149 /test
parente7fa52c2c5cd1a042b177a2d3f4ccc3c7a18dca8 (diff)
FileCheck: Fix off-by-one bug that made CHECK-NOT: ignore the next character after the colon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Other/FileCheck-space.txt9
-rw-r--r--test/Other/lit.local.cfg2
2 files changed, 10 insertions, 1 deletions
diff --git a/test/Other/FileCheck-space.txt b/test/Other/FileCheck-space.txt
new file mode 100644
index 00000000000..6bbe5bc05ba
--- /dev/null
+++ b/test/Other/FileCheck-space.txt
@@ -0,0 +1,9 @@
+RUN: printf "a\nb" | FileCheck %s -check-prefix=TEST1
+RUN: echo oo | FileCheck %s -check-prefix=TEST2
+
+Check that CHECK-NEXT without a space after the colon works.
+TEST1:a
+TEST1-NEXT:b
+
+Check that CHECK-NOT without a space after the colon works.
+TEST2-NOT:foo
diff --git a/test/Other/lit.local.cfg b/test/Other/lit.local.cfg
index 19eebc0ac7a..26930772423 100644
--- a/test/Other/lit.local.cfg
+++ b/test/Other/lit.local.cfg
@@ -1 +1 @@
-config.suffixes = ['.ll', '.c', '.cpp']
+config.suffixes = ['.ll', '.c', '.cpp', '.txt']