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 | c2d8d63f0f17c3531b451ac0f087471678fe1934 (patch) | |
| tree | b97a33dd662019a5cc55656e3a49741e5275a845 | |
| parent | 233aeed4df2194e1453d5749bd4b4c14671f5d6e (diff) | |
| download | ruby-c2d8d63f0f17c3531b451ac0f087471678fe1934.tar.gz ruby-c2d8d63f0f17c3531b451ac0f087471678fe1934.tar.xz ruby-c2d8d63f0f17c3531b451ac0f087471678fe1934.zip | |
* lib/test/unit/ui/console/testrunner.rb (test_started): restore $0
after changing process title. [ruby-talk:97426]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/test/unit/ui/console/testrunner.rb | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Apr 21 15:56:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/test/unit/ui/console/testrunner.rb (test_started): restore $0 + after changing process title. [ruby-talk:97426] + Wed Apr 21 11:45:22 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * process.c: Recover wrongly removed spaces at end of the lines. diff --git a/lib/test/unit/ui/console/testrunner.rb b/lib/test/unit/ui/console/testrunner.rb index 5f3877640..1cb4ff0b8 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 |
