Fix r32731: position of definition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-07-29 08:01:45 +00:00
parent b7c350d963
commit 18f03623a3

View File

@ -56,11 +56,11 @@ class TestProcess < Test::Unit::TestCase
end end
def test_rlimit_nofile def test_rlimit_nofile
return unless rlimit_exist?
limit = /openbsd/ =~ RUBY_PLATFORM ? 1 : 0
# if limit=0, this test freeze pn OpenBSD # if limit=0, this test freeze pn OpenBSD
with_tmpchdir { with_tmpchdir {
write_file 's', <<-"End" write_file 's', <<-"End"
return unless rlimit_exist?
limit = /openbsd/ =~ RUBY_PLATFORM ? 1 : 0
result = 1 result = 1
begin begin
Process.setrlimit(Process::RLIMIT_NOFILE, limit) Process.setrlimit(Process::RLIMIT_NOFILE, limit)