From 5c145034e68898436abe65c34c73c51007a07ac4 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Tue, 5 May 2020 22:03:37 -0700 Subject: [PATCH] [YAMLVFSWriter][Tests] Fix YAMLVFSWriterTest Differential Revision: https://reviews.llvm.org/D79550 --- llvm/unittests/Support/VirtualFileSystemTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 FS = getFromYAMLRawString(Buffer, Lower); ASSERT_TRUE(FS.get() != nullptr);