diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_process.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -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. diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index afcda48912..ba933b2d56 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -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', ''] |