[all-commits] [llvm/llvm-project] 58bc50: [VirtualFileSystem] Add unit test that showcases a...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue May 12 14:56:29 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 58bc507b6fe6c6276a7c858a7d1de83ca02e999e
      https://github.com/llvm/llvm-project/commit/58bc507b6fe6c6276a7c858a7d1de83ca02e999e
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-05-12 (Tue, 12 May 2020)

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

  Log Message:
  -----------
  [VirtualFileSystem] Add unit test that showcases another YAMLVFSWriter bug

This scenario generates another broken YAML mapping as illustrated below.

  {
    'type': 'directory',
    'name': "c",
    'contents': [
      ,
      {
        'type': 'directory',
        'name': "d",
        'contents': [
          ,
          {
            'type': 'directory',
            'name': "e",
            'contents': [
              {
                'type': 'file',
                'name': "f",
                'external-contents': "//root/a/c/d/e/f"
              }                    {
                'type': 'file',
                'name': "g",
                'external-contents': "//root/a/c/d/e/g"
              }
            ]
          }
        ]
      }
    ]
  },




More information about the All-commits mailing list