From 9bf9b3ef95e5a699b931435f482087c57439eda3 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 28 Mar 2012 07:40:02 +0000 Subject: * 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 --- test/ruby/test_process.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/ruby') 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 -- cgit v1.2.3