mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
sleep thread until assertions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
92ca9f0696
commit
29513dbc47
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue