From 51cb462f428298458a49d526d299a20ebc8d83ef Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 6 Dec 2015 12:41:47 +0000 Subject: test_io_console.rb: wait * test/io/console/test_io_console.rb (test_getpass): wait slave thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/io/console/test_io_console.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index dc489166e8..379921f337 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -189,9 +189,10 @@ class TestIO_Console < Test::Unit::TestCase } assert_equal("asdf", m.getpass("> ")) assert_equal("\n", s.readpartial(2)) + th.join } ensure - th.join + th.join rescue nil end def test_iflush -- cgit v1.2.3