diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-15 07:07:09 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-15 07:07:09 +0000 |
commit | 79d37eb940a93a2181b13d673d9cbbacc88211a0 (patch) | |
tree | c4f483eb6861b1d5be5d54435ab0cbe4313485f4 /test/ruby | |
parent | 3d0c41a022b4ad872ac103b5ec027db64ed41067 (diff) |
give dummy argument for Process.getrlimit and rescue TypeError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 3c258f9894..e6da07e459 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -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 |