From 321f696920630be1b3c93e2a8b965c624ddd646c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Wed, 14 Oct 2020 13:16:03 +0300 Subject: [PATCH] [libcxx] [test] Fix the fs.op.absolute test to cope with windows paths Prepend the root path on the already_absolute testcase, and construct a path ending with the preferred separator for the test reference for "foo/". Differential Revision: https://reviews.llvm.org/D89944 --- .../filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp index 335ba06..23c18f1 100644 --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp @@ -42,8 +42,8 @@ TEST_CASE(basic_test) } TestCases [] = { {"", cwd / ""}, {"foo", cwd / "foo"}, - {"foo/", cwd / "foo/"}, - {"/already_absolute", "/already_absolute"} + {"foo/", cwd / "foo" / ""}, + {"/already_absolute", cwd.root_path() / "already_absolute"} }; for (auto& TC : TestCases) { std::error_code ec = GetTestEC(); -- 2.7.4