summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_process.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
new file mode 100644
index 0000000000..3c258f9894
--- /dev/null
+++ b/test/ruby/test_process.rb
@@ -0,0 +1,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