From 621ce3790ba254256222addad60d818cb90ac831 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 15 Oct 2019 18:05:44 +0000 Subject: [PATCH] [test] Update YAML mapping in VirtualFileSystemTest The 'bar' directory should be part of the root rather than the file itself. llvm-svn: 374930 --- llvm/unittests/Support/VirtualFileSystemTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp index b81cb86..53b8630 100644 --- a/llvm/unittests/Support/VirtualFileSystemTest.cpp +++ b/llvm/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" -- 2.7.4