diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-03-26 07:06:25 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-03-26 07:06:25 +0000 |
commit | ed27554079d407f0a27a1e597772efbb4a29b368 (patch) | |
tree | b3218cefbdadff0ce235e65fbbbd51c8a1a845e9 | |
parent | 4d334c4cdd4a58dc930cbc2ed8abd77f1a1cd4bb (diff) | |
download | bcm5719-llvm-ed27554079d407f0a27a1e597772efbb4a29b368.tar.gz bcm5719-llvm-ed27554079d407f0a27a1e597772efbb4a29b368.zip |
Fix test case initialization issues in permissions test
llvm-svn: 328477
-rw-r--r-- | libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp b/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp index 3783f5f34f8..65d8d716471 100644 --- a/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp +++ b/libcxx/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}, |