summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 12:33:11 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-01 12:33:11 +0000
commitd3962a1594c33f9be051659e251d9a7964705722 (patch)
treee5d9ff28664f6a886fce613988987e1917db937c /lib
parent7a37c70f2f5b0b60beaa67d1d2409de90dba878c (diff)
downloadruby-d3962a1594c33f9be051659e251d9a7964705722.tar.gz
ruby-d3962a1594c33f9be051659e251d9a7964705722.tar.xz
ruby-d3962a1594c33f9be051659e251d9a7964705722.zip
* lib/test/unit/ui/console/testrunner.rb: prevent destructive modification to $0.
* test/rubygems/gemutilities.rb (build_rake_in): move from test_gem_ext_rake_builder.rb. * test/rubygems/test_gem_ext_rake_builder.rb: ditto. * test/rubygems/test_gem_installer.rb: override Gem.ruby and ENV["rake"]. * test/rubygems/test_gem_uninstaller.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/test/unit/ui/console/testrunner.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/test/unit/ui/console/testrunner.rb b/lib/test/unit/ui/console/testrunner.rb
index 149530046..b6475c003 100644
--- a/lib/test/unit/ui/console/testrunner.rb
+++ b/lib/test/unit/ui/console/testrunner.rb
@@ -90,10 +90,8 @@ module Test
end
def test_started(name)
- unless defined? $program_name
- $program_name = $0
- alias $0 $program_name
- end
+ $program_name = $0
+ alias $0 $program_name
$PROGRAM_NAME += "\0#{name}"
output_single(name + ": ", VERBOSE)
end