diff --git a/clang/test/Index/hidden-redecls.m b/clang/test/Index/hidden-redecls.m index 1735c0b5e184e0..ba34e69db85efa 100644 --- a/clang/test/Index/hidden-redecls.m +++ b/clang/test/Index/hidden-redecls.m @@ -7,6 +7,7 @@ - (void)top_method; // p1_method in protocol P1 is hidden since module_redecls.sub hasn't been // imported yet. Check it is still indexed. -// RUN: c-index-test -index-file-full %s -isystem %S/Inputs -fmodules -target x86_64-apple-macosx10.7 | FileCheck %s +// RUN: rm -rf %t +// RUN: c-index-test -index-file-full %s -isystem %S/Inputs -fmodules -fmodules-cache-path=%t -target x86_64-apple-macosx10.7 | FileCheck %s // CHECK: [indexDeclaration]: kind: objc-instance-method | name: p1_method | {{.*}} | loc: {{.*}}hidden-redecls-sub.h:2:9 | {{.*}} | isRedecl: 0 // CHECK: [indexDeclaration]: kind: objc-instance-method | name: p1_method | {{.*}} | loc: {{.*}}hidden-redecls-sub.h:3:9 | {{.*}} | isRedecl: 1