mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_beginendblock.rb: assert_normal_exit
* test/ruby/test_beginendblock.rb (test_callcc_at_exit): use assert_normal_exit for better message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
494731b787
commit
006eca88cf
1 changed files with 1 additions and 2 deletions
|
@ -176,13 +176,12 @@ EOW
|
||||||
|
|
||||||
def test_callcc_at_exit
|
def test_callcc_at_exit
|
||||||
bug9110 = '[ruby-core:58329][Bug #9110]'
|
bug9110 = '[ruby-core:58329][Bug #9110]'
|
||||||
ruby = EnvUtil.rubybin
|
|
||||||
script = <<EOS
|
script = <<EOS
|
||||||
require "continuation"
|
require "continuation"
|
||||||
c = nil
|
c = nil
|
||||||
at_exit { c.call }
|
at_exit { c.call }
|
||||||
at_exit { callcc {|_c| c = _c } }
|
at_exit { callcc {|_c| c = _c } }
|
||||||
EOS
|
EOS
|
||||||
assert system(ruby, "-e", script)
|
assert_normal_exit(script, bug9110)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue