From bbe48722cb3a2b81bc61910e7f815d13c77bcd6a Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 20 Jul 2015 21:22:46 +0000 Subject: 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. llvm-svn: 242710 --- clang/test/CodeCompletion/macros-in-modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/CodeCompletion/macros-in-modules.c') diff --git a/clang/test/CodeCompletion/macros-in-modules.c b/clang/test/CodeCompletion/macros-in-modules.c index 82ffaae7cb1..f10743af257 100644 --- a/clang/test/CodeCompletion/macros-in-modules.c +++ b/clang/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 = -- cgit v1.2.3