[libcxx] [test] Fix path.decompose for windows
authorMartin Storsjö <martin@martin.st>
Thu, 15 Oct 2020 09:52:56 +0000 (12:52 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 5 Mar 2021 17:37:31 +0000 (19:37 +0200)
commit1adaf48d231d1dfbd7ff575e2d03c8b01a512fe7
tree111af8f329d96ee0a65bb6cb50bd01a2ac7b154b
parent2da21a1bd466c7f42dd07a3da2d4501e95731951
[libcxx] [test] Fix path.decompose for windows

Add ifdefs to the test reference tables for cases where paths are
interpreted differently (paths that contain a root name).

Fix test assumptions regarding has_root_name() and is_absolute() and
add logic to verify the results of is_absolute() for the test cases in
the table.

Also add a testcase for the path "//net/", which seemed like an
omission.

Differential Revision: https://reviews.llvm.org/D89943
libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp