r242710 - Fix code completion tests to use an explicit modules cache path

Reid Kleckner reid at kleckner.net
Mon Jul 20 14:22:47 PDT 2015


Author: rnk
Date: Mon Jul 20 16:22:46 2015
New Revision: 242710

URL: http://llvm.org/viewvc/llvm-project?rev=242710&view=rev
Log:
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.

Modified:
    cfe/trunk/test/CodeCompletion/macros-in-modules.c
    cfe/trunk/test/CodeCompletion/macros-in-modules.m

Modified: cfe/trunk/test/CodeCompletion/macros-in-modules.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeCompletion/macros-in-modules.c?rev=242710&r1=242709&r2=242710&view=diff
==============================================================================
--- cfe/trunk/test/CodeCompletion/macros-in-modules.c (original)
+++ cfe/trunk/test/CodeCompletion/macros-in-modules.c Mon Jul 20 16:22:46 2015
@@ -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 =

Modified: cfe/trunk/test/CodeCompletion/macros-in-modules.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeCompletion/macros-in-modules.m?rev=242710&r1=242709&r2=242710&view=diff
==============================================================================
--- cfe/trunk/test/CodeCompletion/macros-in-modules.m (original)
+++ cfe/trunk/test/CodeCompletion/macros-in-modules.m Mon Jul 20 16:22:46 2015
@@ -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 =





More information about the cfe-commits mailing list