From: Jonas Devlieghere Date: Tue, 15 Oct 2019 18:05:44 +0000 (+0000) Subject: [test] Update YAML mapping in VirtualFileSystemTest X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e381e2c6bf6e9a09283ea0c232701bd26cec4697;p=llvm [test] Update YAML mapping in VirtualFileSystemTest The 'bar' directory should be part of the root rather than the file itself. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374930 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Support/VirtualFileSystemTest.cpp b/unittests/Support/VirtualFileSystemTest.cpp index b81cb86f0b6..53b8630e47d 100644 --- a/unittests/Support/VirtualFileSystemTest.cpp +++ b/unittests/Support/VirtualFileSystemTest.cpp @@ -2022,10 +2022,10 @@ TEST_F(VFSFromYAMLTest, WorkingDirectory) { " 'roots': [\n" "{\n" " 'type': 'directory',\n" - " 'name': '//root/',\n" + " 'name': '//root/bar',\n" " 'contents': [ {\n" " 'type': 'file',\n" - " 'name': 'bar/a',\n" + " 'name': 'a',\n" " 'external-contents': '//root/foo/a'\n" " }\n" " ]\n" @@ -2081,10 +2081,10 @@ TEST_F(VFSFromYAMLTest, WorkingDirectoryFallthrough) { " 'roots': [\n" "{\n" " 'type': 'directory',\n" - " 'name': '//root/',\n" + " 'name': '//root/bar',\n" " 'contents': [ {\n" " 'type': 'file',\n" - " 'name': 'bar/a',\n" + " 'name': 'a',\n" " 'external-contents': '//root/foo/a'\n" " }\n" " ]\n" @@ -2138,10 +2138,10 @@ TEST_F(VFSFromYAMLTest, WorkingDirectoryFallthroughInvalid) { " 'roots': [\n" "{\n" " 'type': 'directory',\n" - " 'name': '//root/',\n" + " 'name': '//root/bar',\n" " 'contents': [ {\n" " 'type': 'file',\n" - " 'name': 'bar/a',\n" + " 'name': 'a',\n" " 'external-contents': '//root/foo/a'\n" " }\n" " ]\n"