summaryrefslogtreecommitdiffstats
path: root/test/ruby
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
commit840f2e4c0d22b0da5cb9228ae165c1c8993a99ee (patch)
tree8e0c0b0e846c129893af08a63fccc2342e1b0069 /test/ruby
parent935475fc95825fb6264084908ba39f094f9466bb (diff)
downloadruby-840f2e4c0d22b0da5cb9228ae165c1c8993a99ee.tar.gz
ruby-840f2e4c0d22b0da5cb9228ae165c1c8993a99ee.tar.xz
ruby-840f2e4c0d22b0da5cb9228ae165c1c8993a99ee.zip
give dummy argument for Process.getrlimit and rescue TypeError.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 3c258f989..e6da07e45 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