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
@ -1048,9 +1048,11 @@ q.pop
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_thread_name
|
def test_thread_name
|
||||||
t = Thread.start { }
|
t = Thread.start { sleep }
|
||||||
t.name = 'foo'
|
t.name = 'foo'
|
||||||
assert_equal 'foo', t.name
|
assert_equal 'foo', t.name
|
||||||
|
ensure
|
||||||
|
t.kill
|
||||||
t.join
|
t.join
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user