summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_process.rb')
-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