From 945e4692ca9898c0595ef30437ec3a45b75483a4 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 25 Dec 2014 07:14:12 +0000 Subject: console.c: IO.console arguments passing * ext/io/console/console.c (console_dev): send the given arguments to the opened console. as a special case, do nothing if :close is given. * test/lib/leakchecker.rb (LeakChecker#check_fd_leak): close if console. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/lib/leakchecker.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/lib/leakchecker.rb') diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb index 5d05c1e456..37c87c9f72 100644 --- a/test/lib/leakchecker.rb +++ b/test/lib/leakchecker.rb @@ -31,6 +31,9 @@ class LeakChecker def check_fd_leak(test_name) leaked = false live1 = @fd_info + if IO.respond_to?(:console) + IO.console(:close) + end live2 = find_fds fd_closed = live1 - live2 if !fd_closed.empty? -- cgit v1.2.3