diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-13 08:56:11 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-13 08:56:11 +0000 |
commit | cb455bff61891d04ea648ff04d2a6d65c4d25579 (patch) | |
tree | 16666586865b72a1ab93314116fa29336610bc26 /test/ruby | |
parent | 7109dedb4d3306025623368cae85c5d854e2267c (diff) | |
download | ruby-cb455bff61891d04ea648ff04d2a6d65c4d25579.tar.gz |
sleep thread until assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_thread.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 3f4a8c8ea0..0eb57628d3 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -1048,9 +1048,11 @@ q.pop end def test_thread_name - t = Thread.start { } + t = Thread.start { sleep } t.name = 'foo' assert_equal 'foo', t.name + ensure + t.kill t.join end end |