[libc++] Try to fix cross-loading of lit.local.cfg on Windows
authorLouis Dionne <ldionne@apple.com>
Tue, 27 Oct 2020 20:24:47 +0000 (16:24 -0400)
committerLouis Dionne <ldionne@apple.com>
Tue, 27 Oct 2020 20:28:29 +0000 (16:28 -0400)
commit2089e762d00cbfdc8db55fd61f55e2f7efa46f67
treebe20594ff540739c1ea3da9e7d7ea99e4ddea410
parent801aeb5d51f2b4162be7b8f975c8596b692314d7
[libc++] Try to fix cross-loading of lit.local.cfg on Windows

On windows, the previous path replacement using forward slashes wouldn't
work, and so we'd end up including the same file again. We would do that
until we'd hit the recursion limit of the Python interpreter.

Instead, use `os.path` to properly replace without assuming a specific
path separator.
libcxx/test/libcxx/input.output/file.streams/lit.local.cfg
libcxx/test/libcxx/input.output/iostream.format/lit.local.cfg
libcxx/test/libcxx/input.output/iostream.objects/lit.local.cfg
libcxx/test/libcxx/input.output/iostreams.base/lit.local.cfg
libcxx/test/libcxx/input.output/stream.buffers/lit.local.cfg
libcxx/test/libcxx/input.output/string.streams/lit.local.cfg
libcxx/test/libcxx/localization/lit.local.cfg