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 --- 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 @@ } 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();