diff options
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r-- | test/ruby/test_thread.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index ade680c55b..3f4a8c8ea0 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -1046,4 +1046,11 @@ q.pop t.new {} end end + + def test_thread_name + t = Thread.start { } + t.name = 'foo' + assert_equal 'foo', t.name + t.join + end end |