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

ruby-changes:34164

From: naruse <ko1@a...>
Date: Fri, 30 May 2014 12:06:52 +0900 (JST)
Subject: [ruby-changes:34164] naruse:r46245 (trunk): * test/lib/test/unit/parallel.rb (_run_suite): orig_stdout may be nil

naruse	2014-05-30 12:06:47 +0900 (Fri, 30 May 2014)

  New Revision: 46245

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

  Log:
    * test/lib/test/unit/parallel.rb (_run_suite): orig_stdout may be nil
      though I don't know the reason.

  Modified files:
    trunk/ChangeLog
    trunk/test/lib/test/unit/parallel.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46244)
+++ ChangeLog	(revision 46245)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri May 30 12:05:59 2014  NARUSE, Yui  <naruse@r...>
+
+	* test/lib/test/unit/parallel.rb (_run_suite): orig_stdout may be nil
+	  though I don't know the reason.
+
 Fri May 30 11:33:35 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* string.c (rb_str_substr): need to reset code range for shared
Index: test/lib/test/unit/parallel.rb
===================================================================
--- test/lib/test/unit/parallel.rb	(revision 46244)
+++ test/lib/test/unit/parallel.rb	(revision 46245)
@@ -77,8 +77,8 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/parallel.rb#L77
         return result
       ensure
         MiniTest::Unit.output = orig_stdout
-        $stdin = orig_stdin
-        $stdout = orig_stdout
+        $stdin = orig_stdin if orig_stdin
+        $stdout = orig_stdout if orig_stdout
         o.close if o && !o.closed?
         i.close if i && !i.closed?
       end

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

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