[Bug #467] Failure: test_rlimit_value(TestProcess)

Bug #467: Failure: test_rlimit_value(TestProcess)
http://redmine.ruby-lang.org/issues/show/467

e$B5/I<<Te(B: Kazuhiro NISHIYAMA
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal

ruby 1.9.0 (2008-08-21 revision 18741) [powerpc-darwin9.4.0]
e$B$N4D6-$Ge(Btest_rlimit_value(TestProcess)e$B$,e(BFailuree$B$K$J$j$^$9!#e(B

  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:inblock in test_rlimit_value’
    /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/ruby/test_process.rb:111:in
    `test_rlimit_value’

e$B0J2<$N%Q%C%A$GDL$k$h$&$K$J$j$^$9$,!"LdBj$J$$$G$7$g$&$+e(B?

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’, ‘’]

e$B%A%1%C%He(B #467 e$B$,99?7$5$l$^$7$?!#e(B (by Anonymous)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r18793.

http://redmine.ruby-lang.org/issues/show/467

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs