aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-03-26 01:34:53 +0000
committerTed Kremenek <kremenek@apple.com>2010-03-26 01:34:53 +0000
commitf16c76c2e61cca3889ecef23fbb475a9cebad4e3 (patch)
treec608a3f30260285c10cee2d6a5a99f4f50668974
parent83c5184d3ae2ff94a993b3e770e96756193f15f0 (diff)
Update test case since c-index-test now works on invalid sources.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99595 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Index/cindex-on-invalid.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Index/cindex-on-invalid.m b/test/Index/cindex-on-invalid.m
index 7e190eb079..d2d952d8b1 100644
--- a/test/Index/cindex-on-invalid.m
+++ b/test/Index/cindex-on-invalid.m
@@ -1,7 +1,6 @@
-// RUN: not c-index-test -test-load-source local %s > %t 2> %t.err
-// RUN: FileCheck %s < %t.err
-// CHECK: error: expected identifier or '('
-// CHECK: Unable to load translation unit!
+// RUN: c-index-test -test-load-source local %s 2>&1 | FileCheck %s
int foo;
int
+
+// CHECK: cindex-on-invalid.m:6:70: error: expected identifier or '(' \ No newline at end of file