diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-05 10:02:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-05 10:02:02 +0000 |
commit | 8bce84fe5dbb07260f33235f7ebb393ff140df72 (patch) | |
tree | f15b0e6098880730f99f1b00931e6164cb1191f5 /test/ruby | |
parent | 74b985acedd741b2755a9965e663b95a7c2b399a (diff) | |
download | ruby-8bce84fe5dbb07260f33235f7ebb393ff140df72.tar.gz |
* process.c (proc_seteuid_m): fix argument.
* test/ruby/test_process.rb (test_geteuid): fix typo.
* test/ruby/test_process.rb (test_getegid, test_set[eg]uid): add.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_process.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 84e5f13bb1..29f7ec8f1d 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1162,9 +1162,21 @@ class TestProcess < Test::Unit::TestCase end def test_geteuid + assert_kind_of(Integer, Process.euid) + end + + def test_seteuid + assert_nothing_raised(TypeError) {Process.euid += 0} + end + + def test_getegid assert_kind_of(Integer, Process.egid) end + def test_setegid + assert_nothing_raised(TypeError) {Process.egid += 0} + end + def test_uid_re_exchangeable_p r = Process::UID.re_exchangeable? assert(true == r || false == r) |