ruby/lib/rubygems
mame 16b6fe17a3 Suppress leak of file descriptors
`Bundler.ui=` in `Gem::TestCase#setup` creates `Bundler::UI::RGProxy`
which inherites `::Gem::SilentUI` whose `initialize` opens `/dev/null`,
and assigns it to `Gem::DefaultUserInteraction.ui`.
After that, `Gem::TestCase#setup` forces to overwrite
`Gem::DefaultUserInteraction.ui` with a mock.
Thus, the instance of `::Gem::SilentUI` is not closed, which leads to
the leak.

This commit keeps `Gem::DefaultUserInteraction.ui` and manually close it
in `teardown`.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-17 07:41:03 +00:00
..
commands * remove trailing spaces, append newline at EOF. 2017-10-08 01:32:22 +00:00
core_ext Merge rubygems master. 2017-10-08 01:32:18 +00:00
ext Merge rubygems master. 2017-10-08 01:32:18 +00:00
package Merge rubygems-2.6.14 changes. 2017-10-10 08:58:22 +00:00
request * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
request_set Merge rubygems master. 2017-10-08 01:32:18 +00:00
resolver Merge rubygems master. 2017-10-08 01:32:18 +00:00
security * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems 2016-06-18 05:11:55 +00:00
source Merge rubygems master. 2017-10-08 01:32:18 +00:00
ssl_certs * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems 2016-06-18 05:11:55 +00:00
util * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
available_set.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
basic_specification.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
bundler_version_finder.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
command.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
command_manager.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
compatibility.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
config_file.rb Merge rubygems-2.6.14 changes. 2017-10-10 08:58:22 +00:00
defaults.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: 2016-06-24 04:13:11 +00:00
dependency.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
dependency_installer.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
dependency_list.rb Merge rubygems-2.6.12 from rubygems/rubygems. 2017-05-01 11:40:46 +00:00
deprecate.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
doctor.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
errors.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
exceptions.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
ext.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
gem_runner.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
gemcutter_utilities.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1. 2016-03-04 00:29:40 +00:00
indexer.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
install_default_message.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
install_message.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
install_update_options.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
installer.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
installer_test_case.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
local_remote_options.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
mock_gem_ui.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
name_tuple.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
package.rb Merge rubygems-2.6.14 changes. 2017-10-10 08:58:22 +00:00
package_task.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
path_support.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1. 2016-03-04 00:29:40 +00:00
platform.rb Merge rubygems-2.6.12 from rubygems/rubygems. 2017-05-01 11:40:46 +00:00
psych_additions.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
psych_tree.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
rdoc.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
remote_fetcher.rb Merge rubygems-2.6.13. 2017-08-28 08:31:28 +00:00
request.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
request_set.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
requirement.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
resolver.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
safe_yaml.rb Merge rubygems-2.6.14 changes. 2017-10-10 08:58:22 +00:00
security.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
security_option.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
server.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
source.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
source_list.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1. 2016-03-04 00:29:40 +00:00
source_local.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
source_specific_file.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
spec_fetcher.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
specification.rb Merge rubygems-2.6.14 changes. 2017-10-10 08:58:22 +00:00
stub_specification.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
syck_hack.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
test_case.rb Suppress leak of file descriptors 2017-10-17 07:41:03 +00:00
test_utilities.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
text.rb Merge rubygems-2.6.13. 2017-08-28 08:31:28 +00:00
uninstaller.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
uri_formatter.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
user_interaction.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
util.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
validator.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. 2016-02-01 12:43:26 +00:00
version.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00
version_option.rb Merge rubygems master. 2017-10-08 01:32:18 +00:00