diff --git a/ChangeLog b/ChangeLog index 7d5a731b59..b66483f7c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Apr 21 15:56:43 2004 Nobuyoshi Nakada + + * 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 * 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 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