aboutsummaryrefslogtreecommitdiffstats
path: root/test/io/console
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-06 12:41:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-06 12:41:47 +0000
commitf0722924fa6011aca106d195222feaf9875f17e5 (patch)
tree44603a40468cb3fa6be532936f065b93a79392b4 /test/io/console
parent7f17ce149a1b1840021c553c5cc24d65ea333e12 (diff)
downloadruby-f0722924fa6011aca106d195222feaf9875f17e5.tar.gz
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
Diffstat (limited to 'test/io/console')
-rw-r--r--test/io/console/test_io_console.rb3
1 files changed, 2 insertions, 1 deletions
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