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

View File

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