summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r--test/ruby/test_process.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 50de9f799d..10888c1ebb 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -56,10 +56,10 @@ class TestProcess < Test::Unit::TestCase
end
def test_rlimit_nofile
- # if limit=0, this test freeze pn OpenBSD
+ return unless rlimit_exist?
with_tmpchdir {
write_file 's', <<-"End"
- return unless rlimit_exist?
+ # if limit=0, this test freeze pn OpenBSD
limit = /openbsd/ =~ RUBY_PLATFORM ? 1 : 0
result = 1
begin