From: NAKAMURA Takumi Date: Tue, 2 Oct 2012 00:11:53 +0000 (+0000) Subject: clang/test/Index: Fix two tests. Both %S and %t are expanded to absolute paths. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d62505677555fd4fae731232d7308a91c2bb10a2;p=clang clang/test/Index: Fix two tests. Both %S and %t are expanded to absolute paths. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164982 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Index/annotate-macro-args.m b/test/Index/annotate-macro-args.m index 3bba5f41e3..7d56523ce4 100644 --- a/test/Index/annotate-macro-args.m +++ b/test/Index/annotate-macro-args.m @@ -3,9 +3,9 @@ // RUN: c-index-test -test-annotate-tokens=%S/annotate-macro-args.h:15:1:16:1 %s -include %S/annotate-macro-args.h | FileCheck -check-prefix=CHECK2 %s // Test with PCH -// RUN: c-index-test -write-pch %S/%t.pch -x objective-c-header %S/annotate-macro-args.h -Xclang -detailed-preprocessing-record -// RUN: c-index-test -test-annotate-tokens=%S/annotate-macro-args.h:9:1:10:1 %s -include-pch %S/%t.pch | FileCheck -check-prefix=CHECK1 %s -// RUN: c-index-test -test-annotate-tokens=%S/annotate-macro-args.h:15:1:16:1 %s -include-pch %S/%t.pch | FileCheck -check-prefix=CHECK2 %s +// RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/annotate-macro-args.h -Xclang -detailed-preprocessing-record +// RUN: c-index-test -test-annotate-tokens=%S/annotate-macro-args.h:9:1:10:1 %s -include-pch %t.pch | FileCheck -check-prefix=CHECK1 %s +// RUN: c-index-test -test-annotate-tokens=%S/annotate-macro-args.h:15:1:16:1 %s -include-pch %t.pch | FileCheck -check-prefix=CHECK2 %s // CHECK1: Identifier: "MACRO" [9:3 - 9:8] macro expansion=MACRO:6:9 // CHECK1: Punctuation: "(" [9:8 - 9:9] diff --git a/test/Index/get-cursor-macro-args.m b/test/Index/get-cursor-macro-args.m index 0996e8a365..a439419b76 100644 --- a/test/Index/get-cursor-macro-args.m +++ b/test/Index/get-cursor-macro-args.m @@ -6,12 +6,12 @@ // RUN: %s -include %S/get-cursor-macro-args.h | FileCheck %s // Test with PCH -// RUN: c-index-test -write-pch %S/%t.pch -x objective-c-header %S/get-cursor-macro-args.h +// RUN: c-index-test -write-pch %t.pch -x objective-c-header %S/get-cursor-macro-args.h // RUN: c-index-test -cursor-at=%S/get-cursor-macro-args.h:9:12 \ // RUN: -cursor-at=%S/get-cursor-macro-args.h:9:21 \ // RUN: -cursor-at=%S/get-cursor-macro-args.h:15:12 \ // RUN: -cursor-at=%S/get-cursor-macro-args.h:15:20 \ -// RUN: %s -include-pch %S/%t.pch | FileCheck %s +// RUN: %s -include-pch %t.pch | FileCheck %s // CHECK: ObjCClassRef=MyClass:1:12 // CHECK-NEXT: ObjCMessageExpr=meth:2:8