From: Reid Kleckner Date: Mon, 20 Jul 2015 21:22:46 +0000 (+0000) Subject: Fix code completion tests to use an explicit modules cache path X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c54488f88dd79dabefc978365a5def5e61b2754f;p=clang Fix code completion tests to use an explicit modules cache path Otherwise the stale module cache data may cause the test to fail. These two tests are new and are the only instances of c-index-test with -fmodules that doesn't have an explicit module cache path. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242710 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeCompletion/macros-in-modules.c b/test/CodeCompletion/macros-in-modules.c index 82ffaae7cb..f10743af25 100644 --- a/test/CodeCompletion/macros-in-modules.c +++ b/test/CodeCompletion/macros-in-modules.c @@ -2,7 +2,7 @@ // RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap // RUN: echo '#define FOO_MACRO 42' > %t/foo.h // RUN: c-index-test -code-completion-at=%s:9:1 -I %t %s | FileCheck %s -// RUN: c-index-test -code-completion-at=%s:9:1 -I %t -fmodules %s | FileCheck %s +// RUN: c-index-test -code-completion-at=%s:9:1 -I %t -fmodules -fmodules-cache-path=%t %s | FileCheck %s #include "foo.h" int x = diff --git a/test/CodeCompletion/macros-in-modules.m b/test/CodeCompletion/macros-in-modules.m index 8d6b3753d0..d845c26a74 100644 --- a/test/CodeCompletion/macros-in-modules.m +++ b/test/CodeCompletion/macros-in-modules.m @@ -1,7 +1,7 @@ // RUN: rm -rf %t && mkdir %t // RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap // RUN: echo '#define FOO_MACRO 42' > %t/foo.h -// RUN: c-index-test -code-completion-at=%s:8:1 -I %t -fmodules %s | FileCheck %s +// RUN: c-index-test -code-completion-at=%s:8:1 -I %t -fmodules-cache-path=%t -fmodules %s | FileCheck %s @import Foo; int x =