1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_thread.rb: stay alive

* test/ruby/test_thread.rb (test_thread_name): the target
  thread needs to stay alive till the end of this test, so that
  inspected result would not change.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-12-12 09:03:33 +00:00
parent 8e5595b5ee
commit 3aeef6bcf0

View file

@ -1050,7 +1050,7 @@ q.pop
end
def test_thread_name
t = Thread.start {}
t = Thread.start {sleep}
assert_nil t.name
s = t.inspect
t.name = 'foo'