Skip to content

Commit 0f05200

Browse files
committed
[libc++][AIX] AIX allows for changing permissions of symlinks
The test fails on AIX due to it expecting an error as on Linux. However, as on other non-Linux systems symlinks permissions are supported so expect an empty error code. Reviewed By: daltenty, #libc, ldionne Differential Revision: https://reviews.llvm.org/D121140
1 parent 8a67c6e commit 0f05200

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
// UNSUPPORTED: c++03
1010

11-
// XFAIL: LIBCXX-AIX-FIXME
12-
1311
// <filesystem>
1412

1513
// void permissions(const path& p, perms prms,
@@ -164,7 +162,7 @@ TEST_CASE(test_no_resolve_symlink_on_symlink)
164162
{perms::owner_all, perms::group_all, perm_options::remove},
165163
};
166164
for (auto const& TC : cases) {
167-
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
165+
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(_AIX)
168166
// On OS X symlink permissions are supported. We should get an empty
169167
// error code and the expected permissions.
170168
const auto expected_link_perms = TC.expected;

0 commit comments

Comments
 (0)