summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-15 07:07:09 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-15 07:07:09 +0000
commit8317037ce50f06bbe047a8df55312ab6f116fc2d (patch)
tree8e0c0b0e846c129893af08a63fccc2342e1b0069
parentbd7bd6427bdda2558470e38781252f9cfc33c111 (diff)
downloadruby-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.rb4
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