[VirtualFileSystem] Add unit test that showcases another YAMLVFSWriter bug
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 12 May 2020 21:55:17 +0000 (14:55 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 12 May 2020 21:55:43 +0000 (14:55 -0700)
commit58bc507b6fe6c6276a7c858a7d1de83ca02e999e
tree20ce16eb920420b01934bb5747e325e782dd3478
parent59ba19c56e1cf6d01e6acce1bf405a57f19c340c
[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"
              }
            ]
          }
        ]
      }
    ]
  },
llvm/unittests/Support/VirtualFileSystemTest.cpp