llvm-project/clang/test/VFS
Adrian McCarthy 1275ab1620 Improve VFS compatibility on Windows
Keys in a virtual file system can be in Posix or Windows form or even
a combination of the two.  Many VFS tests (and a few Clang tests) were
XFAILed on Windows because of false negatives when comparing paths.

First, we default CaseSenstive to false on Windows.  This allows
drive letters like "D:" to match "d:".  Windows filesystems are, by
default, case insensitive, so this makes sense even beyond the drive
letter.

Second, we allow slashes to match backslashes when they're used as the
root component of a path.

Both of these changes are limited to RedirectingFileSystems, so there's
little chance of affecting other path handling.

These changes allow eleven of the VFS tests to pass on Windows as well
as three other Clang tests, so they have re-enabled.

This solves the majority of PR43272.  Additional VFS test failures will
be fixed in separate patches.

Differential Revision: https://reviews.llvm.org/D69958
2019-11-14 08:48:47 -08:00
..
Inputs [VFS] Add property 'fallthrough' that controls fallback to real file system. 2018-10-26 22:16:24 +00:00
external-names.c Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
framework-import.m Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
implicit-include.c Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
include-mixed-real-and-virtual.c Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
include-real-from-virtual.c Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
include-virtual-from-real.c Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
include.c Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
incomplete-umbrella.m Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
module-import.m Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
module_missing_vfs.m Start porting ivfsoverlay tests to Windows 2019-09-11 20:56:25 +00:00
parse-errors.c
real-path-found-first.m Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
relative-path.c Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
subframework-symlink.m Switch "windows" to "system-windows" in some XFAILs 2019-09-12 11:19:12 +00:00
test_nonmodular.c Start porting ivfsoverlay tests to Windows 2019-09-11 20:56:25 +00:00
umbrella-framework-import-skipnonexist.m Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
umbrella-mismatch.m
vfsroot-include.c Switch "windows" to "system-windows" in some XFAILs 2019-09-12 11:19:12 +00:00
vfsroot-module.m Switch "windows" to "system-windows" in some XFAILs 2019-09-12 11:19:12 +00:00
vfsroot-with-overlay.c Switch "windows" to "system-windows" in some XFAILs 2019-09-12 11:19:12 +00:00