1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* gc.c (rb_gc_set_params): allow GC parameter configuration by

environment variables.  based on a patch from funny-falcon at
  https://gist.github.com/856296, but honors safe level.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2011-03-07 08:39:39 +00:00
parent c414d861c1
commit eb807d42ec
67 changed files with 773 additions and 1845 deletions

View file

@ -33,7 +33,7 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
end
end
if win_platform? then
if win_platform?
assert File.exist?(@executable)
else
assert File.symlink?(@executable)
@ -42,9 +42,9 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
# Evil hack to prevent false removal success
FileUtils.rm_f @executable
open @executable, "wb+" do |f| f.puts "binary" end
open(@executable, "wb+") {|f| f.puts "binary"}
@cmd.options[:args] = [@spec.name]
@cmd.options[:args] = Array(@spec.name)
use_ui @ui do
@cmd.execute
end
@ -56,25 +56,6 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
assert_nil output.shift, "UI output should have contained only two lines"
end
def test_execute_removes_formatted_executable
FileUtils.rm_f @executable # Wish this didn't happen in #setup
Gem::Installer.exec_format = 'foo-%s-bar'
@installer.format_executable = true
@installer.install
formatted_executable = File.join @gemhome, 'bin', 'foo-executable-bar'
assert_equal true, File.exist?(formatted_executable)
@cmd.options[:format_executable] = true
@cmd.execute
assert_equal false, File.exist?(formatted_executable)
rescue
Gem::Installer.exec_format = nil
end
def test_execute_not_installed
@cmd.options[:args] = ["foo"]
e = assert_raises Gem::InstallError do
@ -89,7 +70,7 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
end
def test_execute_prerelease
@spec = quick_spec "pre", "2.b"
@spec = quick_gem "pre", "2.b"
@gem = File.join @tempdir, @spec.file_name
FileUtils.touch @gem