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 | 8317037ce50f06bbe047a8df55312ab6f116fc2d (patch) | |
tree | 8e0c0b0e846c129893af08a63fccc2342e1b0069 | |
parent | bd7bd6427bdda2558470e38781252f9cfc33c111 (diff) | |
download | ruby-8317037ce50f06bbe047a8df55312ab6f116fc2d.tar.gz |
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
-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 |