Skip to content

Commit 3d6ca4b

Browse files
committed
[libcxx] [test] Call create_directory_symlink when linking directories
This makes the symlinks work properly on windows. A similar round of cleanup was done in c41bda7, but these tests were added after that. Differential Revision: https://reviews.llvm.org/D97089
1 parent 26005c7 commit 3d6ca4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/create_directory.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ TEST_CASE(dest_is_symlink_to_dir)
118118
{
119119
scoped_test_env env;
120120
const path dir = env.create_dir("dir");
121-
const path sym = env.create_symlink(dir, "sym_name");
121+
const path sym = env.create_directory_symlink(dir, "sym_name");
122122
std::error_code ec = GetTestEC();
123123
TEST_CHECK(create_directory(sym, ec) == false);
124124
TEST_CHECK(!ec);

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ TEST_CASE(dest_is_symlink_to_unexisting) {
147147
TEST_CASE(dest_is_symlink_to_dir) {
148148
scoped_test_env env;
149149
const path dir = env.create_dir("dir");
150-
const path sym = env.create_symlink(dir, "sym_name");
150+
const path sym = env.create_directory_symlink(dir, "sym_name");
151151
const path attr_dir = env.create_dir("attr_dir");
152152
{
153153
std::error_code ec = GetTestEC();

0 commit comments

Comments
 (0)