diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 93eb85ea08..b37fbfebd6 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -59,9 +59,11 @@ class TestProcess < Test::Unit::TestCase return unless rlimit_exist? with_tmpchdir { write_file 's', <<-"End" + # if limit=0, this test freeze pn OpenBSD + limit = /openbsd/ =~ RUBY_PLATFORM ? 1 : 0 result = 1 begin - Process.setrlimit(Process::RLIMIT_NOFILE, 0) + Process.setrlimit(Process::RLIMIT_NOFILE, limit) rescue Errno::EINVAL result = 0 end |