diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-06-17 21:00:27 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-06-17 21:00:27 +0000 |
commit | 6aa4c100ad9c03bb41fc787f7162ff71b10152bd (patch) | |
tree | f1a95dbd2e741ae693d5f0f94874bf707550cafb /libcxx/test/std/experimental/filesystem | |
parent | 34ecebcb230ee79f82cb0606367123c557a2fc76 (diff) | |
download | bcm5719-llvm-6aa4c100ad9c03bb41fc787f7162ff71b10152bd.tar.gz bcm5719-llvm-6aa4c100ad9c03bb41fc787f7162ff71b10152bd.zip |
Reorder permissions test so they are not dependent on the processes umask
llvm-svn: 273049
Diffstat (limited to 'libcxx/test/std/experimental/filesystem')
-rw-r--r-- | libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.permissions/permissions.pass.cpp | 8 |
1 files changed, 4 insertions, 4 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 74977c4eaca..7b3013a4d9a 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 @@ -89,20 +89,20 @@ TEST_CASE(basic_permissions_test) perms expected; } cases[] = { // test file + {file, perms::none, perms::none}, {file, perms::owner_all, perms::owner_all}, {file, perms::group_all | AP, perms::owner_all | perms::group_all}, {file, perms::group_all | RP, perms::owner_all}, - {file, perms::none, perms::none}, // test directory + {dir, perms::none, perms::none}, {dir, perms::owner_all, perms::owner_all}, {dir, perms::group_all | AP, perms::owner_all | perms::group_all}, {dir, perms::group_all | RP, perms::owner_all}, - {dir, perms::none, perms::none}, // test symlink with resolve symlinks on symlink + {sym, perms::none | RS, perms::none}, {sym, perms::owner_all | RS, perms::owner_all}, {sym, perms::group_all | AP | RS, perms::owner_all | perms::group_all}, - {sym, perms::group_all | RP | RS, perms::owner_all}, - {sym, perms::none | RS, perms::none} + {sym, perms::group_all | RP | RS, perms::owner_all} }; for (auto const& TC : cases) { TEST_CHECK(status(TC.p).permissions() != TC.expected); |