diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-11 23:38:44 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-11 23:38:44 +0000 |
commit | d900ed31f776a85291a6aee870c942a57ab86e6b (patch) | |
tree | 66323e1f766b81c2b9b77be5356089f9459f1f24 /test | |
parent | c755baf85f553e7ea20290facdeff56c490162a1 (diff) | |
download | ruby-d900ed31f776a85291a6aee870c942a57ab86e6b.tar.gz |
* process.c (rlimit_resource_name2int): support more limits:
RLIMIT_MSGQUEUE, RLIMIT_NICE, RLIMIT_RTPRIO, RLIMIT_RTTIME and
RLIMIT_SIGPENDING.
(Init_process): ditto.
patch by Run Paint Run Run. [ruby-core:32262]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 03cf36e44b..df1086dad1 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -88,11 +88,16 @@ class TestProcess < Test::Unit::TestCase :DATA, "DATA", :FSIZE, "FSIZE", :MEMLOCK, "MEMLOCK", + :MSGQUEUE, "MSGQUEUE", + :NICE, "NICE", :NOFILE, "NOFILE", :NPROC, "NPROC", :RSS, "RSS", - :STACK, "STACK", + :RTPRIO, "RTPRIO", + :RTTIME, "RTTIME", :SBSIZE, "SBSIZE", + :SIGPENDING, "SIGPENDING", + :STACK, "STACK", ].each {|name| if Process.const_defined? "RLIMIT_#{name}" assert_nothing_raised { Process.getrlimit(name) } |