ruby-changes:65636
From: Peter <ko1@a...>
Date: Wed, 24 Mar 2021 13:03:16 +0900 (JST)
Subject: [ruby-changes:65636] 850448abd5 (master): Fix leaked file descriptor in passwd test
https://git.ruby-lang.org/ruby.git/commit/?id=850448abd5 From 850448abd588e085673bfde7a8a874182e3e41b8 Mon Sep 17 00:00:00 2001 From: Peter Zhu <peter@p...> Date: Tue, 23 Mar 2021 15:35:44 +0000 Subject: Fix leaked file descriptor in passwd test --- test/etc/test_etc.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb index dc224d0..2eddcf4 100644 --- a/test/etc/test_etc.rb +++ b/test/etc/test_etc.rb @@ -171,6 +171,7 @@ class TestEtc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/etc/test_etc.rb#L171 def test_ractor return unless Etc.passwd # => skip test if no platform support + Etc.endpwent assert_ractor(<<~RUBY, require: 'etc') ractor = Ractor.new do -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/