diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-15 03:39:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-15 03:39:20 +0000 |
commit | 72a9833adb4cff54ea476672b834d13c60f1ebdb (patch) | |
tree | 112a78c5eede068a005b2be9e657aadcfbab4e62 | |
parent | 9c9e37a89ce7bb72dc708fc82e43d97a65acb157 (diff) | |
download | ruby-72a9833adb4cff54ea476672b834d13c60f1ebdb.tar.gz ruby-72a9833adb4cff54ea476672b834d13c60f1ebdb.tar.xz ruby-72a9833adb4cff54ea476672b834d13c60f1ebdb.zip |
new file.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_process.rb | 13 |
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 000000000..3c258f989 --- /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 |