give dummy argument for Process.getrlimit and rescue TypeError.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2006-06-15 07:07:09 +00:00
parent bd7bd6427b
commit 8317037ce5
1 changed files with 2 additions and 2 deletions

View File

@ -3,10 +3,10 @@ require 'test/unit'
class TestProcess < Test::Unit::TestCase
def test_rlimit
begin
Process.getrlimit
Process.getrlimit(nil)
rescue NotImplementedError
assert_raise(NotImplementedError) { Process.setrlimit }
rescue ArgumentError
rescue TypeError
assert_raise(ArgumentError) { Process.setrlimit }
end
end