r212467 - Use temporary module cache in test
Ben Langmuir
blangmuir at apple.com
Mon Jul 7 10:34:37 PDT 2014
Author: benlangmuir
Date: Mon Jul 7 12:34:37 2014
New Revision: 212467
URL: http://llvm.org/viewvc/llvm-project?rev=212467&view=rev
Log:
Use temporary module cache in test
Modified:
cfe/trunk/unittests/libclang/LibclangTest.cpp
Modified: cfe/trunk/unittests/libclang/LibclangTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/libclang/LibclangTest.cpp?rev=212467&r1=212466&r2=212467&view=diff
==============================================================================
--- cfe/trunk/unittests/libclang/LibclangTest.cpp (original)
+++ cfe/trunk/unittests/libclang/LibclangTest.cpp Mon Jul 7 12:34:37 2014
@@ -434,7 +434,9 @@ TEST_F(LibclangReparseTest, ReparseWithM
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);
More information about the cfe-commits
mailing list