Lines Matching full:permissions
21 // void permissions(const path& p, perms prms,
23 // void permissions(const path& p, perms prms, std::error_code& ec) noexcept;
24 // void permissions(const path& p, perms prms, perm_options opts, std::error_code);
41 ASSERT_NOT_NOEXCEPT(fs::permissions(p, pr)); in test_signatures()
42 ASSERT_NOT_NOEXCEPT(fs::permissions(p, pr, opts)); in test_signatures()
43 ASSERT_NOEXCEPT(fs::permissions(p, pr, ec)); in test_signatures()
44 LIBCPP_ASSERT_NOT_NOEXCEPT(fs::permissions(p, pr, opts, ec)); in test_signatures()
54 fs::permissions(f, opts); in test_error_reporting()
72 fs::permissions(dne, fs::perms{}, ec); in test_error_reporting()
79 fs::permissions(dne_sym, fs::perms{}, ec); in test_error_reporting()
121 // will have set their permissions to perms::owner_all in basic_permissions_test()
126 assert(status(TC.p).permissions() != TC.expected); in basic_permissions_test()
129 permissions(TC.p, TC.set_perms, TC.opts, ec); in basic_permissions_test()
131 auto pp = status(TC.p).permissions(); in basic_permissions_test()
136 permissions(TC.p, TC.set_perms, ec); in basic_permissions_test()
138 auto pp = status(TC.p).permissions(); in basic_permissions_test()
146 // permissions visible via std::filesystem doesn't show any difference
153 const auto file_perms = status(file).permissions(); in test_no_resolve_symlink_on_symlink()
169 // On OS X symlink permissions are supported. We should get an empty in test_no_resolve_symlink_on_symlink()
170 // error code and the expected permissions. in test_no_resolve_symlink_on_symlink()
174 // On linux symlink permissions are not supported. The error code should in test_no_resolve_symlink_on_symlink()
175 // be 'operation_not_supported' and the symlink permissions should be in test_no_resolve_symlink_on_symlink()
177 const auto expected_link_perms = symlink_status(sym).permissions(); in test_no_resolve_symlink_on_symlink()
181 permissions(sym, TC.set_perms, TC.opts | perm_options::nofollow, ec); in test_no_resolve_symlink_on_symlink()
186 assert(status(file).permissions() == file_perms); in test_no_resolve_symlink_on_symlink()
187 assert(symlink_status(sym).permissions() == expected_link_perms); in test_no_resolve_symlink_on_symlink()