Project

General

Profile

Actions

Feature #9286

closed

Add unit test for test_chown in test_fileutils.rb with non-root account

Added by vajrasky (Vajrasky Kok) almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Target version:
[ruby-core:59281]

Description

Right now, there is no unit tests for test_chown except for checking whether chown is singleton or not. Hereby, I attach the patch to test the capability of chown method with non-root user account. Non-root user can change the group ownership of the file (but not the user ownership).

In separate tickets, I'll add unit test for chmod_r and chmod with root account. We do it step by step.


Files

add_unit_test_chown_normal_user.patch (2.67 KB) add_unit_test_chown_normal_user.patch vajrasky (Vajrasky Kok), 12/23/2013 05:40 PM
add_unit_test_chown_normal_user.patch (3.15 KB) add_unit_test_chown_normal_user.patch vajrasky (Vajrasky Kok), 12/23/2013 06:32 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0