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

ruby-changes:40831

From: nobu <ko1@a...>
Date: Sun, 6 Dec 2015 21:42:00 +0900 (JST)
Subject: [ruby-changes:40831] nobu:r52910 (trunk): test_io_console.rb: wait

nobu	2015-12-06 21:41:47 +0900 (Sun, 06 Dec 2015)

  New Revision: 52910

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

  Log:
    test_io_console.rb: wait
    
    * test/io/console/test_io_console.rb (test_getpass): wait slave
      thread.

  Modified files:
    trunk/test/io/console/test_io_console.rb
Index: test/io/console/test_io_console.rb
===================================================================
--- test/io/console/test_io_console.rb	(revision 52909)
+++ test/io/console/test_io_console.rb	(revision 52910)
@@ -189,9 +189,10 @@ class TestIO_Console < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L189
       }
       assert_equal("asdf", m.getpass("> "))
       assert_equal("\n", s.readpartial(2))
+      th.join
     }
   ensure
-    th.join
+    th.join rescue nil
   end
 
   def test_iflush

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

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