Author: Mikhail Goncharov Date: 2023-06-06T17:36:35+02:00 New Revision: 4faa6c6699149de504216173ea34f33765193905
URL: https://github.com/llvm/llvm-project/commit/4faa6c6699149de504216173ea34f33765193905 DIFF: https://github.com/llvm/llvm-project/commit/4faa6c6699149de504216173ea34f33765193905.diff LOG: [clang][test] Use a physical copy of FS (missing piece from https://reviews.llvm.org/D152265) 476e7c49ecb762df1d68273696b06c36feb0fd96 Added: Modified: clang/unittests/Serialization/ModuleCacheTest.cpp Removed: ################################################################################ diff --git a/clang/unittests/Serialization/ModuleCacheTest.cpp b/clang/unittests/Serialization/ModuleCacheTest.cpp index 1e152a399c218..c3e347ffec660 100644 --- a/clang/unittests/Serialization/ModuleCacheTest.cpp +++ b/clang/unittests/Serialization/ModuleCacheTest.cpp @@ -149,6 +149,7 @@ TEST_F(ModuleCacheTest, CachedModuleNewPathAllowErrors) { CompilerInstance::createDiagnostics(new DiagnosticOptions()); CreateInvocationOptions CIOpts; CIOpts.Diags = Diags; + CIOpts.VFS = llvm::vfs::createPhysicalFileSystem(); // First run should pass with no errors const char *Args[] = {"clang", "-fmodules", "-Fframeworks", _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits