From 11e36bee8f55b8c822bc3b1c2f9e7d65660c786d Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Thu, 15 Jun 2006 03:39:43 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'ruby_1_8'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/ruby/test_process.rb (limited to 'test') 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 -- cgit v1.2.3