ruby-changes:56242
From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Jun 2019 12:31:40 +0900 (JST)
Subject: [ruby-changes:56242] Nobuyoshi Nakada: dc7da30bed (trunk): Close leaked file descriptor
https://git.ruby-lang.org/ruby.git/commit/?id=dc7da30bed From dc7da30bedd48d2ba38ce9cac05e378f0c823b50 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 28 Jun 2019 12:31:21 +0900 Subject: Close leaked file descriptor diff --git a/test/scanf/test_scanfio.rb b/test/scanf/test_scanfio.rb index f7c4392..e3b8f45 100644 --- a/test/scanf/test_scanfio.rb +++ b/test/scanf/test_scanfio.rb @@ -23,6 +23,8 @@ class TestScanfIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/scanf/test_scanfio.rb#L23 w.write('a') w.close assert_equal([], r.scanf('a')) + ensure + r.close end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/