[clang] dc580c9 - Switch test back from getRealFileSystem to createPhysicalFileSystem
James Y Knight via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 21 18:09:46 PST 2024
Author: James Y Knight
Date: 2024-11-21T21:03:11-05:00
New Revision: dc580c9cf65d9bdad92e127325b50e712422379b
URL: https://github.com/llvm/llvm-project/commit/dc580c9cf65d9bdad92e127325b50e712422379b
DIFF: https://github.com/llvm/llvm-project/commit/dc580c9cf65d9bdad92e127325b50e712422379b.diff
LOG: Switch test back from getRealFileSystem to createPhysicalFileSystem
The tests change the VFS's working directory, but, we don't want to
change the actual process's working-directory, or it can break other
tests (depending on run order).
Fixes: df9a14d7bbf1180e4f1474254c9d7ed6bcb4ce55
Added:
Modified:
clang/unittests/Sema/SemaNoloadLookupTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Sema/SemaNoloadLookupTest.cpp b/clang/unittests/Sema/SemaNoloadLookupTest.cpp
index a8e1bb0bd2c5de..e31fc78b2391d0 100644
--- a/clang/unittests/Sema/SemaNoloadLookupTest.cpp
+++ b/clang/unittests/Sema/SemaNoloadLookupTest.cpp
@@ -58,7 +58,7 @@ class NoloadLookupTest : public ::testing::Test {
addFile(FileName, Contents);
CreateInvocationOptions CIOpts;
- CIOpts.VFS = llvm::vfs::getRealFileSystem();
+ CIOpts.VFS = llvm::vfs::createPhysicalFileSystem();
IntrusiveRefCntPtr<DiagnosticsEngine> Diags =
CompilerInstance::createDiagnostics(*CIOpts.VFS,
new DiagnosticOptions());
More information about the cfe-commits
mailing list