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
507
-
@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)
529
+
@testthrows_matching_uv_error("chown($(repr(file)), -2, -1)", [Base.UV_EPERM, Base.UV_EINVAL]) do
530
+
chown(file, -2, -1) # Non-root user cannot change ownership to another user
531
+
end
532
+
@testthrows_matching_uv_error("chown($(repr(file)), -1, -2)", [Base.UV_EPERM, Base.UV_EINVAL]) do
533
+
chown(file, -1, -2) # Non-root user cannot change group to a group they are not a member of (eg: nogroup)
534
+
end
508
535
end
509
536
else
510
537
# test that chown doesn't cause any errors for Windows
0 commit comments