From: Ted Kremenek Date: Fri, 26 Mar 2010 01:34:53 +0000 (+0000) Subject: Update test case since c-index-test now works on invalid sources. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f16c76c2e61cca3889ecef23fbb475a9cebad4e3;p=clang 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 --- 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