diff options
| author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-23 11:04:54 +0000 |
|---|---|---|
| committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-23 11:04:54 +0000 |
| commit | 8aaf39ce803c8126e2d542bc7b264bb3c65e85fa (patch) | |
| tree | d24b869a26290870bea162ad985a6f891a0465ed | |
| parent | cefcbd24f67258ec2dc1263fa987378f1971d429 (diff) | |
* 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
| -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', ''] |
