[libcxx] [test] Fix fs.op.proximate for windows
authorMartin Storsjö <martin@martin.st>
Wed, 14 Oct 2020 12:13:54 +0000 (15:13 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 22 Mar 2021 22:32:44 +0000 (00:32 +0200)
commit695ec081a4a09d58796c8b410801d2cefce7580b
tree516279838f586763aedaa3c7bf4398becc7f11d3
parent78a65cd945d006ff02f9d24d9cc20a302ed93b08
[libcxx] [test] Fix fs.op.proximate for windows

Simmilar to many other similar path handling tests, convert the
test reference to preferred separators, and ifdef a few test references
that use network root names.

Additionally, generalize code for trimming off the root path for
generating relative_cwd, and for skipping the root name element
in count_path_elems.

Rename one fictive path for consistency with the other test cases,
and add a bunch of more test cases for completeness.

Differential Revision: https://reviews.llvm.org/D98988
libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.proximate/proximate.pass.cpp