summaryrefslogtreecommitdiff
path: root/test
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
commit79d37eb940a93a2181b13d673d9cbbacc88211a0 (patch)
treec4f483eb6861b1d5be5d54435ab0cbe4313485f4 /test
parent3d0c41a022b4ad872ac103b5ec027db64ed41067 (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')
-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