aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/FileManagerTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
-rw-r--r--clang/unittests/Basic/FileManagerTest.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/unittests/Basic/FileManagerTest.cpp b/clang/unittests/Basic/FileManagerTest.cpp
index 14c7879..9f05197 100644
--- a/clang/unittests/Basic/FileManagerTest.cpp
+++ b/clang/unittests/Basic/FileManagerTest.cpp
@@ -346,18 +346,4 @@ TEST_F(FileManagerTest, getVirtualFileFillsRealPathName) {
EXPECT_EQ(file->tryGetRealPathName(), ExpectedResult);
}
-TEST_F(FileManagerTest, getFileDontOpenRealPath) {
- auto statCache = llvm::make_unique<FakeStatCache>();
- statCache->InjectDirectory("/tmp/abc", 42);
- SmallString<64> Path("/tmp/abc/foo.cpp");
- statCache->InjectFile(Path.str().str().c_str(), 43);
- manager.setStatCache(std::move(statCache));
-
- const FileEntry *file = manager.getFile(Path, /*openFile=*/false);
-
- ASSERT_TRUE(file != nullptr);
-
- ASSERT_EQ(file->tryGetRealPathName(), Path);
-}
-
} // anonymous namespace