summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-05 09:16:57 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-05 09:16:57 +0000
commit88fda023aaa08ddb5b69fe4cb7e071ca23f13d26 (patch)
tree4165135d81d832694c75d4f6be02de089f73c2a9 /test
parent72a77c25e5f9837539d7af523971f0a2ef35d66f (diff)
Join a thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/io/nonblock/test_flush.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/io/nonblock/test_flush.rb b/test/io/nonblock/test_flush.rb
index 8c93c814a3..ab54205174 100644
--- a/test/io/nonblock/test_flush.rb
+++ b/test/io/nonblock/test_flush.rb
@@ -29,7 +29,7 @@ class TestIONonblock < Test::Unit::TestCase
w << "a" * 4096
result = ""
timeout(10) {
- Thread.new {
+ t0 = Thread.new {
Thread.pass
w.close
}
@@ -44,6 +44,7 @@ class TestIONonblock < Test::Unit::TestCase
# ignore [ruby-dev:35638]
end
assert_nothing_raised {t.join}
+ t0.join
}
assert_equal(4097, result.size)
true