diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-21 06:56:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-21 06:56:48 +0000 |
commit | 97a557bdf92580ac1458e7da639040fd11c8eaec (patch) | |
tree | b97a33dd662019a5cc55656e3a49741e5275a845 /lib | |
parent | 45c445941b834b420c92773a01c460b34de4234e (diff) | |
download | ruby-97a557bdf92580ac1458e7da639040fd11c8eaec.tar.gz |
* lib/test/unit/ui/console/testrunner.rb (test_started): restore $0
after changing process title. [ruby-talk:97426]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test/unit/ui/console/testrunner.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test/unit/ui/console/testrunner.rb b/lib/test/unit/ui/console/testrunner.rb index 5f38776403..1cb4ff0b82 100644 --- a/lib/test/unit/ui/console/testrunner.rb +++ b/lib/test/unit/ui/console/testrunner.rb @@ -90,7 +90,8 @@ module Test end def test_started(name) - $0 = $0.sub(/(?:\0.*)?\z/) {"\0"+name} + $0 += "\0#{name}" + $0.sub!(/\0.*\z/, '') output_single(name + ": ", VERBOSE) end |