mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix leaked file descriptor in passwd test
This commit is contained in:
parent
061edf6b05
commit
850448abd5
Notes:
git
2021-03-24 13:03:19 +09:00
1 changed files with 1 additions and 0 deletions
|
@ -171,6 +171,7 @@ class TestEtc < Test::Unit::TestCase
|
|||
|
||||
def test_ractor
|
||||
return unless Etc.passwd # => skip test if no platform support
|
||||
Etc.endpwent
|
||||
|
||||
assert_ractor(<<~RUBY, require: 'etc')
|
||||
ractor = Ractor.new do
|
||||
|
|
Loading…
Reference in a new issue