1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_process.rb (TestProcess#test_rlimit_value): add Errno::EINVAL. [ruby-dev:35900]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2008-08-23 11:04:54 +00:00
parent cefcbd24f6
commit 8aaf39ce80
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sat Aug 23 20:01:29 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_process.rb (TestProcess#test_rlimit_value):
add Errno::EINVAL. [ruby-dev:35900]
Sat Aug 23 18:29:29 2008 Tanaka Akira <akr@fsij.org>
* io.c (rb_scan_open_args): use pop_last_hash.

View file

@ -108,8 +108,8 @@ class TestProcess < Test::Unit::TestCase
def test_rlimit_value
return unless rlimit_exist?
assert_raise(ArgumentError) { Process.setrlimit(:CORE, :FOO) }
assert_raise(Errno::EPERM) { Process.setrlimit(:NOFILE, :INFINITY) }
assert_raise(Errno::EPERM) { Process.setrlimit(:NOFILE, "INFINITY") }
assert_raise(Errno::EPERM, Errno::EINVAL) { Process.setrlimit(:NOFILE, :INFINITY) }
assert_raise(Errno::EPERM, Errno::EINVAL) { Process.setrlimit(:NOFILE, "INFINITY") }
end
TRUECOMMAND = [RUBY, '-e', '']