blob: 3c258f989425b65770221aa4d4fc9d2addb42467 (
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
rescue NotImplementedError
assert_raise(NotImplementedError) { Process.setrlimit }
rescue ArgumentError
assert_raise(ArgumentError) { Process.setrlimit }
end
end
end
|