mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
confirm that status.termsig is not nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
90bf4a8edb
commit
fd9f38348c
1 changed files with 4 additions and 3 deletions
|
@ -317,7 +317,7 @@ class TestRubyOptimization < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_tailcall_interrupted_by_sigint
|
def test_tailcall_interrupted_by_sigint
|
||||||
bug = 'ruby-core:76327'
|
bug12576 = 'ruby-core:76327'
|
||||||
script = <<EOS
|
script = <<EOS
|
||||||
RubyVM::InstructionSequence.compile_option = {
|
RubyVM::InstructionSequence.compile_option = {
|
||||||
:tailcall_optimization => true,
|
:tailcall_optimization => true,
|
||||||
|
@ -354,8 +354,9 @@ EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
assert_equal("INT", Signal.signame(status.termsig))
|
assert_not_equal(nil, status.termsig, bug12576)
|
||||||
assert_match(/Interrupt/, err, bug)
|
assert_equal("INT", Signal.signame(status.termsig), bug12576)
|
||||||
|
assert_match(/Interrupt/, err, bug12576)
|
||||||
end
|
end
|
||||||
|
|
||||||
class Bug10557
|
class Bug10557
|
||||||
|
|
Loading…
Reference in a new issue