]> granicus.if.org Git - clang/commitdiff
Fix code completion tests to use an explicit modules cache path
authorReid Kleckner <reid@kleckner.net>
Mon, 20 Jul 2015 21:22:46 +0000 (21:22 +0000)
committerReid Kleckner <reid@kleckner.net>
Mon, 20 Jul 2015 21:22:46 +0000 (21:22 +0000)
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

test/CodeCompletion/macros-in-modules.c
test/CodeCompletion/macros-in-modules.m

index 82ffaae7cb108d1fb37b45bea97c64931bf95e97..f10743af257315db203520ad09e9767077ddcab9 100644 (file)
@@ -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 =
index 8d6b3753d043eb528b77c7770e047f57136a0ddd..d845c26a74cb94236ed50a030d611903b1f0e004 100644 (file)
@@ -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 =