You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@test_throws Base._UVError("chown($(repr(file)), -2, -1)", Base.UV_EPERM) chown(file, -2, -1) # Non-root user cannot change ownership to another user
522
-
@test_throws Base._UVError("chown($(repr(file)), -1, -2)", Base.UV_EPERM) chown(file, -1, -2) # Non-root user cannot change group to a group they are not a member of (eg: nogroup)
544
+
@testthrows_matching_uv_error("chown($(repr(file)), -2, -1)", [Base.UV_EPERM, Base.UV_EINVAL]) do
545
+
chown(file, -2, -1) # Non-root user cannot change ownership to another user
546
+
end
547
+
@testthrows_matching_uv_error("chown($(repr(file)), -1, -2)", [Base.UV_EPERM, Base.UV_EINVAL]) do
548
+
chown(file, -1, -2) # Non-root user cannot change group to a group they are not a member of (eg: nogroup)
549
+
end
523
550
end
524
551
else
525
552
# test that chown doesn't cause any errors for Windows
0 commit comments