From f16c76c2e61cca3889ecef23fbb475a9cebad4e3 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 26 Mar 2010 01:34:53 +0000 Subject: [PATCH] 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 --- test/Index/cindex-on-invalid.m | 7 +++---- 1 file 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 -- 2.50.1