summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-10-15 18:05:44 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-10-15 18:05:44 +0000
commit621ce3790ba254256222addad60d818cb90ac831 (patch)
tree1a7d12ebd1299c6ae6309fd4d1171baf833e0bb1 /llvm/unittests/Support
parent9e49adc97574ca777e7ab8ec90a88a8b68ca1558 (diff)
downloadbcm5719-llvm-621ce3790ba254256222addad60d818cb90ac831.tar.gz
bcm5719-llvm-621ce3790ba254256222addad60d818cb90ac831.zip
[test] Update YAML mapping in VirtualFileSystemTest
The 'bar' directory should be part of the root rather than the file itself. llvm-svn: 374930
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/VirtualFileSystemTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp
index b81cb86f0b6..53b8630e47d 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"
OpenPOWER on IntegriCloud