diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-29 08:01:45 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-29 08:01:45 +0000 |
commit | 18f03623a3f9fda3e8b6404ebe7464df2756835b (patch) | |
tree | 3303104f315c701f72fd0707767f327be66ca944 /test | |
parent | b7c350d9639ea981c6acbd5f30361d2803209f63 (diff) | |
download | ruby-18f03623a3f9fda3e8b6404ebe7464df2756835b.tar.gz |
Fix r32731: position of definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index f7ba518e7a..50de9f799d 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -56,11 +56,11 @@ class TestProcess < Test::Unit::TestCase end def test_rlimit_nofile - return unless rlimit_exist? - limit = /openbsd/ =~ RUBY_PLATFORM ? 1 : 0 # if limit=0, this test freeze pn OpenBSD with_tmpchdir { write_file 's', <<-"End" + return unless rlimit_exist? + limit = /openbsd/ =~ RUBY_PLATFORM ? 1 : 0 result = 1 begin Process.setrlimit(Process::RLIMIT_NOFILE, limit) |