aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-28 07:40:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-28 07:40:02 +0000
commit9bf9b3ef95e5a699b931435f482087c57439eda3 (patch)
treebe4b59205f49d3fabbd31230288559fe35a718f2 /test/ruby
parent1521f9331e2aa74fd3248d9cb5392735a2eb36cc (diff)
downloadruby-9bf9b3ef95e5a699b931435f482087c57439eda3.tar.gz
* process.c (obj2uid, obj2gid): allow strings as input user/group id.
[ruby-core:40923][Feature #5610] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_process.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 3dab8e0bfa..5882e6abcc 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1180,6 +1180,12 @@ class TestProcess < Test::Unit::TestCase
rescue NotImplementedError
end
+ def test_seteuid_name
+ user = ENV["USER"] or return
+ assert_nothing_raised(TypeError) {Process.euid = user}
+ rescue NotImplementedError
+ end
+
def test_getegid
assert_kind_of(Integer, Process.egid)
end