]> granicus.if.org Git - llvm/commitdiff
[test] Update YAML mapping in VirtualFileSystemTest
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 15 Oct 2019 18:05:44 +0000 (18:05 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 15 Oct 2019 18:05:44 +0000 (18:05 +0000)
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

unittests/Support/VirtualFileSystemTest.cpp

index b81cb86f0b673d2a9202a15d321117c0884b0a58..53b8630e47deed71250db4ce2cbebc6a248e77e9 100644 (file)
@@ -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"