diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-02 01:47:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-02 01:47:43 +0000 |
commit | 0465916576dd5807e9ffdb21b4c008a9069a5804 (patch) | |
tree | a069619887dfdd23318a310699c1b210f0f44aa8 /test/ruby | |
parent | caf92db48646a0b2febcd69f2e9a9a6734074a68 (diff) | |
download | ruby-0465916576dd5807e9ffdb21b4c008a9069a5804.tar.gz |
cont.c: fix root fiber to_s
* cont.c (fiber_to_s): fix Fiber#to_s on root fibers which have no
procs. [ruby-core:82629] [Bug #13859]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_fiber.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb index 8fe2cf5be8..59290545f6 100644 --- a/test/ruby/test_fiber.rb +++ b/test/ruby/test_fiber.rb @@ -363,6 +363,7 @@ class TestFiber < Test::Unit::TestCase assert_match(/suspended/, f.to_s) f.resume assert_match(/terminated/, f.to_s) + assert_match(/resumed/, Fiber.current.to_s) end end |