summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
blob: e6da07e4591da7812892c87e1e2be074dbfbc15c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'test/unit'

class TestProcess < Test::Unit::TestCase
  def test_rlimit
    begin
      Process.getrlimit(nil)
    rescue NotImplementedError
      assert_raise(NotImplementedError) { Process.setrlimit }
    rescue TypeError
      assert_raise(ArgumentError) { Process.setrlimit }
    end
  end
end