Skip to content
Snippets Groups Projects
Commit c54488f8 authored by Reid Kleckner's avatar Reid Kleckner
Browse files

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
parent c4eae4ee
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap // RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap
// RUN: echo '#define FOO_MACRO 42' > %t/foo.h // 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 %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" #include "foo.h"
int x = int x =
......
// RUN: rm -rf %t && mkdir %t // RUN: rm -rf %t && mkdir %t
// RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap // RUN: echo 'module Foo { header "foo.h" }' > %t/module.modulemap
// RUN: echo '#define FOO_MACRO 42' > %t/foo.h // 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; @import Foo;
int x = int x =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment