[all-commits] [llvm/llvm-project] 42df3e: [VirtualFileSystem] Add unit test for vfs::YAMLVFS...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon Mar 23 18:49:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 42df3e298561e875f621f305ecb76e233c497f84
      https://github.com/llvm/llvm-project/commit/42df3e298561e875f621f305ecb76e233c497f84
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-03-23 (Mon, 23 Mar 2020)

  Changed paths:
    M llvm/unittests/Support/VirtualFileSystemTest.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list