Skip to content

Commit 621ce37

Browse files
committed
[test] Update YAML mapping in VirtualFileSystemTest
The 'bar' directory should be part of the root rather than the file itself. llvm-svn: 374930
1 parent 9e49adc commit 621ce37

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/unittests/Support/VirtualFileSystemTest.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -2022,10 +2022,10 @@ TEST_F(VFSFromYAMLTest, WorkingDirectory) {
20222022
" 'roots': [\n"
20232023
"{\n"
20242024
" 'type': 'directory',\n"
2025-
" 'name': '//root/',\n"
2025+
" 'name': '//root/bar',\n"
20262026
" 'contents': [ {\n"
20272027
" 'type': 'file',\n"
2028-
" 'name': 'bar/a',\n"
2028+
" 'name': 'a',\n"
20292029
" 'external-contents': '//root/foo/a'\n"
20302030
" }\n"
20312031
" ]\n"
@@ -2081,10 +2081,10 @@ TEST_F(VFSFromYAMLTest, WorkingDirectoryFallthrough) {
20812081
" 'roots': [\n"
20822082
"{\n"
20832083
" 'type': 'directory',\n"
2084-
" 'name': '//root/',\n"
2084+
" 'name': '//root/bar',\n"
20852085
" 'contents': [ {\n"
20862086
" 'type': 'file',\n"
2087-
" 'name': 'bar/a',\n"
2087+
" 'name': 'a',\n"
20882088
" 'external-contents': '//root/foo/a'\n"
20892089
" }\n"
20902090
" ]\n"
@@ -2138,10 +2138,10 @@ TEST_F(VFSFromYAMLTest, WorkingDirectoryFallthroughInvalid) {
21382138
" 'roots': [\n"
21392139
"{\n"
21402140
" 'type': 'directory',\n"
2141-
" 'name': '//root/',\n"
2141+
" 'name': '//root/bar',\n"
21422142
" 'contents': [ {\n"
21432143
" 'type': 'file',\n"
2144-
" 'name': 'bar/a',\n"
2144+
" 'name': 'a',\n"
21452145
" 'external-contents': '//root/foo/a'\n"
21462146
" }\n"
21472147
" ]\n"

0 commit comments

Comments
 (0)