[clangd] testPath's final result agrees with the passed in Style
authorKadir Cetinkaya <kadircet@google.com>
Mon, 23 Nov 2020 09:31:04 +0000 (10:31 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 23 Nov 2020 11:45:06 +0000 (12:45 +0100)
commit8cec8de2a4e6692da6226bb02cf417eb0e50adde
tree4859de753a639c016ac6dca432d19d6f3b666df7
parentd3a0f9b9ec88ce0737470652330262f8ed46daa7
[clangd] testPath's final result agrees with the passed in Style

This was confusing, as testRoot on windows results in C:\\clangd-test
and testPath generated with posix explicitly still contained backslashes.

This patch ensures not only the relative part, but the whole final result
respects passed in Style.

Differential Revision: https://reviews.llvm.org/D91947
clang-tools-extra/clangd/unittests/ConfigCompileTests.cpp
clang-tools-extra/clangd/unittests/TestFS.cpp