summaryrefslogtreecommitdiff
path: root/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-03-26 07:06:25 +0000
committerEric Fiselier <eric@efcs.ca>2018-03-26 07:06:25 +0000
commit245b3a06a17b95cd11ef9d59e74d35095d5b7c14 (patch)
tree30065d311357ba402d75d954f81e34b49031b223 /test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp
parentf2c93738b886428c46476c36dfa38296aef1b2ef (diff)
downloadlibcxx-245b3a06a17b95cd11ef9d59e74d35095d5b7c14.tar.gz
Fix test case initialization issues in permissions test
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@328477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp')
-rw-r--r--test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp b/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp
index 3783f5f34..65d8d7164 100644
--- a/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp
+++ b/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp
@@ -95,7 +95,10 @@ TEST_CASE(basic_permissions_test)
path p;
perms set_perms;
perms expected;
- perm_options opts = perm_options::replace;
+ perm_options opts;
+ TestCase(path xp, perms xperms, perms xexpect,
+ perm_options xopts = perm_options::replace)
+ : p(xp), set_perms(xperms), expected(xexpect), opts(xopts) {}
} cases[] = {
// test file
{file, perms::none, perms::none},
@@ -147,6 +150,9 @@ TEST_CASE(test_no_resolve_symlink_on_symlink)
perms set_perms;
perms expected; // only expected on platform that support symlink perms.
perm_options opts = perm_options::replace;
+ TestCase(perms xperms, perms xexpect,
+ perm_options xopts = perm_options::replace)
+ : set_perms(xperms), expected(xexpect), opts(xopts) {}
} cases[] = {
{perms::owner_all, perms::owner_all},
{perms::group_all, perms::owner_all | perms::group_all, perm_options::add},