summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp b/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp
index 0944a089f28..c32bdd2d192 100644
--- a/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp
+++ b/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp
@@ -60,6 +60,9 @@ TEST_CASE(create_existing_directory)
TEST_CASE(create_directory_one_level)
{
scoped_test_env env;
+ // Remove setgid which mkdir would inherit
+ permissions(env.test_root, perms::remove_perms | perms::set_gid);
+
const path dir = env.make_env_path("dir1");
const path attr_dir = env.create_dir("dir2");
permissions(attr_dir, perms::none);
OpenPOWER on IntegriCloud