Project

General

Profile

Actions

Bug #467

closed

Failure: test_rlimit_value(TestProcess)

Added by znz (Kazuhiro NISHIYAMA) over 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-dev:35900]

Description

=begin
ruby 1.9.0 (2008-08-21 revision 18741) [powerpc-darwin9.4.0]
の環境でtest_rlimit_value(TestProcess)がFailureになります。

  1. Failure:
    test_rlimit_value(TestProcess) [/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/ruby/test_process.rb:111]:
    Errno::EPERM exception expected but was
    Class: Errno::EINVAL
    Message: <"Invalid argument - setrlimit">
    ---Backtrace---
    /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/ruby/test_process.rb:111:in setrlimit' /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/ruby/test_process.rb:111:in block in test_rlimit_value'
    /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/ruby/test_process.rb:111:in `test_rlimit_value'

以下のパッチで通るようになりますが、問題ないでしょうか?

Index: test/ruby/test_process.rb

--- test/ruby/test_process.rb (revision 18753)
+++ test/ruby/test_process.rb (working copy)
@@ -108,8 +108,8 @@
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', '']

=end

Actions #1

Updated by Anonymous about 16 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r18793.
=end

Actions

Also available in: Atom PDF

Like0
Like0