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:
parent
b7c350d963
commit
18f03623a3
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user