[libcxx-commits] [libcxx] [libc++] fix back slash as root dir breaks lexically_relative, lexically_proximate and hash_value on Windows (PR #99780)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Aug 6 00:00:02 PDT 2024
================
@@ -267,7 +267,7 @@ path path::lexically_relative(const path& base) const {
// Find the first mismatching element
----------------
RichardLuo0 wrote:
The original tests already include this: https://github.com/llvm/llvm-project/blob/9f2b4b6c787e0a143d34fcebae8267617fe9e73b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp#L144
But it doesn't cover the different slash as root dir test case, so I add it: https://github.com/llvm/llvm-project/blob/9f2b4b6c787e0a143d34fcebae8267617fe9e73b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp#L81
https://github.com/llvm/llvm-project/pull/99780
More information about the libcxx-commits
mailing list