Actions
Feature #9286
closedAdd unit test for test_chown in test_fileutils.rb with non-root account
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
Updated by vajrasky (Vajrasky Kok) almost 11 years ago
Updated by nobu (Nobuyoshi Nakada) almost 11 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r44364.
Vajrasky, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
test_fileutils.rb: tests for chown
- test/fileutils/fileasserts.rb (assert_ownership_group): new
assertion for group ownership. - test/fileutils/test_fileutils.rb (test_chown{,_verbose,_noop}):
based on the patch by vajrasky (Vajrasky Kok) at
[ruby-core:59281]. [Feature #9286]
Actions
Like0
Like0Like0