[VirtualFileSystem] Add unit test for vfs::YAMLVFSWriter
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 24 Mar 2020 00:47:18 +0000 (17:47 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 24 Mar 2020 01:49:06 +0000 (18:49 -0700)
commit42df3e298561e875f621f305ecb76e233c497f84
treed94017805d619f5679f591c0a904c73f4b0afd28
parent8140f6bcde4256b06ce8bfc85d99db6e13f435e3
[VirtualFileSystem] Add unit test for vfs::YAMLVFSWriter

Add a unit test for vfs::YAMLVFSWriter.

This patch exposes an issue in the writer: when we call addFileMapping
with a directory, the VFS writer will emit it as a regular file, causing
any of the nested files or directories to not be found.
llvm/unittests/Support/VirtualFileSystemTest.cpp