[llvm] 5c14503 - [YAMLVFSWriter][Tests] Fix YAMLVFSWriterTest
Jan Korous via llvm-commits
llvm-commits at lists.llvm.org
Thu May 7 10:43:54 PDT 2020
Author: Jan Korous
Date: 2020-05-07T10:43:22-07:00
New Revision: 5c145034e68898436abe65c34c73c51007a07ac4
URL: https://github.com/llvm/llvm-project/commit/5c145034e68898436abe65c34c73c51007a07ac4
DIFF: https://github.com/llvm/llvm-project/commit/5c145034e68898436abe65c34c73c51007a07ac4.diff
LOG: [YAMLVFSWriter][Tests] Fix YAMLVFSWriterTest
Differential Revision: https://reviews.llvm.org/D79550
Added:
Modified:
llvm/unittests/Support/VirtualFileSystemTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp
index f4e999dedd67..06db731de286 100644
--- a/llvm/unittests/Support/VirtualFileSystemTest.cpp
+++ b/llvm/unittests/Support/VirtualFileSystemTest.cpp
@@ -2197,8 +2197,8 @@ TEST_F(VFSFromYAMLTest, YAMLVFSWriterTest) {
ScopedFile _cd(TestDirectory + "/c/d", "");
ScopedDir _e(TestDirectory + "/e");
ScopedDir _ef(TestDirectory + "/e/f");
- ScopedDir _g(TestDirectory + "/g");
- ScopedFile _h(TestDirectory + "/h", "");
+ ScopedFile _g(TestDirectory + "/g", "");
+ ScopedDir _h(TestDirectory + "/h");
vfs::YAMLVFSWriter VFSWriter;
VFSWriter.addDirectoryMapping(_a.Path, "//root/a");
@@ -2223,8 +2223,8 @@ TEST_F(VFSFromYAMLTest, YAMLVFSWriterTest) {
Lower->addRegularFile("//root/c/d");
Lower->addDirectory("//root/e");
Lower->addDirectory("//root/e/f");
- Lower->addDirectory("//root/g");
- Lower->addRegularFile("//root/h");
+ Lower->addRegularFile("//root/g");
+ Lower->addDirectory("//root/h");
IntrusiveRefCntPtr<vfs::FileSystem> FS = getFromYAMLRawString(Buffer, Lower);
ASSERT_TRUE(FS.get() != nullptr);
More information about the llvm-commits
mailing list