Skip to content

Commit dc580c9

Browse files
committed
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: df9a14d
1 parent ca9f358 commit dc580c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/unittests/Sema/SemaNoloadLookupTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class NoloadLookupTest : public ::testing::Test {
5858
addFile(FileName, Contents);
5959

6060
CreateInvocationOptions CIOpts;
61-
CIOpts.VFS = llvm::vfs::getRealFileSystem();
61+
CIOpts.VFS = llvm::vfs::createPhysicalFileSystem();
6262
IntrusiveRefCntPtr<DiagnosticsEngine> Diags =
6363
CompilerInstance::createDiagnostics(*CIOpts.VFS,
6464
new DiagnosticOptions());

0 commit comments

Comments
 (0)