diff --git a/ChangeLog b/ChangeLog index 5dc1c4578f..9270ed6574 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jun 6 10:57:45 2007 Koichi Sasada + + * test/ruby/test_continuation.rb: add a test for last commit. + Wed Jun 6 10:55:42 2007 Koichi Sasada * cont.c (rb_cont_call): forbid calling dead fiber with diff --git a/test/ruby/test_continuation.rb b/test/ruby/test_continuation.rb index 8af13363dc..729da88e60 100644 --- a/test/ruby/test_continuation.rb +++ b/test/ruby/test_continuation.rb @@ -40,6 +40,13 @@ class TestContinuation < Test::Unit::TestCase assert_raise(LocalJumpError){ callcc } + assert_raise(RuntimeError){ + c = nil + Fiber.new do + callcc {|c2| c = c2 } + end.yield + c.call + } end end