projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f6f6e6
)
Use temporary module cache in test
author
Ben Langmuir
<blangmuir@apple.com>
Mon, 7 Jul 2014 17:34:37 +0000
(17:34 +0000)
committer
Ben Langmuir
<blangmuir@apple.com>
Mon, 7 Jul 2014 17:34:37 +0000
(17:34 +0000)
llvm-svn: 212467
clang/unittests/libclang/LibclangTest.cpp
patch
|
blob
|
history
diff --git
a/clang/unittests/libclang/LibclangTest.cpp
b/clang/unittests/libclang/LibclangTest.cpp
index
8f2694f
..
ef162bc
100644
(file)
--- a/
clang/unittests/libclang/LibclangTest.cpp
+++ b/
clang/unittests/libclang/LibclangTest.cpp
@@
-434,7
+434,9
@@
TEST_F(LibclangReparseTest, ReparseWithModule) {
WriteFile(HeaderName, std::string(HeaderTop) + HeaderBottom);
WriteFile(ModName, ModFile);
- const char *Args[] = { "-fmodules", "-I", TestDir.c_str() };
+ std::string ModulesCache = std::string("-fmodules-cache-path=") + TestDir;
+ const char *Args[] = { "-fmodules", ModulesCache.c_str(),
+ "-I", TestDir.c_str() };
int NumArgs = sizeof(Args) / sizeof(Args[0]);
ClangTU = clang_parseTranslationUnit(Index, MName.c_str(), Args, NumArgs,
nullptr, 0, TUFlags);