summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-07-20 21:22:46 +0000
committerReid Kleckner <reid@kleckner.net>2015-07-20 21:22:46 +0000
commitbbe48722cb3a2b81bc61910e7f815d13c77bcd6a (patch)
treeeef094cee26aea490fa8bb7c064de32f48ff015a /clang/test/CodeCompletion
parenta542e08c85d678664a42316d2a1274c68521bf74 (diff)
downloadbcm5719-llvm-bbe48722cb3a2b81bc61910e7f815d13c77bcd6a.tar.gz
bcm5719-llvm-bbe48722cb3a2b81bc61910e7f815d13c77bcd6a.zip
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
Diffstat (limited to 'clang/test/CodeCompletion')
-rw-r--r--clang/test/CodeCompletion/macros-in-modules.c2
-rw-r--r--clang/test/CodeCompletion/macros-in-modules.m2
2 files changed, 2 insertions, 2 deletions
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 =
diff --git a/clang/test/CodeCompletion/macros-in-modules.m b/clang/test/CodeCompletion/macros-in-modules.m
index 8d6b3753d04..d845c26a74c 100644
--- a/clang/test/CodeCompletion/macros-in-modules.m
+++ b/clang/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 =
OpenPOWER on IntegriCloud