mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
bd7bd6427b
commit
8317037ce5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue