[前][次][番号順一覧][スレッド一覧]

ruby-changes:39995

From: nobu <ko1@a...>
Date: Wed, 7 Oct 2015 22:55:25 +0900 (JST)
Subject: [ruby-changes:39995] nobu:r52076 (trunk): metametameta.rb: restore output

nobu	2015-10-07 22:55:07 +0900 (Wed, 07 Oct 2015)

  New Revision: 52076

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52076

  Log:
    metametameta.rb: restore output
    
    * test/minitest/metametameta.rb (with_output): restore output to
      fix mixing test result output in worker responses.

  Modified files:
    trunk/ChangeLog
    trunk/test/minitest/metametameta.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52075)
+++ ChangeLog	(revision 52076)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Oct  7 22:55:02 2015  Nobuyoshi Nakada  <nobu@r...>
+
+	* test/minitest/metametameta.rb (with_output): restore output to
+	  fix mixing test result output in worker responses.
+
 Wed Oct  7 21:32:51 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* string.c (str_duplicate): move from rb_str_resurrect to short
Index: test/minitest/metametameta.rb
===================================================================
--- test/minitest/metametameta.rb	(revision 52075)
+++ test/minitest/metametameta.rb	(revision 52076)
@@ -57,12 +57,13 @@ class MetaMetaMetaTestCase < MiniTest::U https://github.com/ruby/ruby/blob/trunk/test/minitest/metametameta.rb#L57
   def with_output
     synchronize do
       begin
+        save = MiniTest::Unit.output
         @output = StringIO.new("")
         MiniTest::Unit.output = @output
 
         yield
       ensure
-        MiniTest::Unit.output = STDOUT
+        MiniTest::Unit.output = save
       end
     end
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]