diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-06 15:33:10 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-06 15:33:10 +0000 |
commit | 3a5326f6fcb860304bf1cc18579f83bf42839a47 (patch) | |
tree | 602694e5a3f5bd6235647b66246cd4cce7b3f923 /test | |
parent | f0b468e4b0d86c4f824c434066d561f3d013cd59 (diff) | |
download | ruby-3a5326f6fcb860304bf1cc18579f83bf42839a47.tar.gz |
confirm that status.termsig is not nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_optimization.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb index 0205c92e2f..5f4a54c2f5 100644 --- a/test/ruby/test_optimization.rb +++ b/test/ruby/test_optimization.rb @@ -317,7 +317,7 @@ class TestRubyOptimization < Test::Unit::TestCase end def test_tailcall_interrupted_by_sigint - bug = 'ruby-core:76327' + bug12576 = 'ruby-core:76327' script = <<EOS RubyVM::InstructionSequence.compile_option = { :tailcall_optimization => true, @@ -354,8 +354,9 @@ EOS end end } - assert_equal("INT", Signal.signame(status.termsig)) - assert_match(/Interrupt/, err, bug) + assert_not_equal(nil, status.termsig, bug12576) + assert_equal("INT", Signal.signame(status.termsig), bug12576) + assert_match(/Interrupt/, err, bug12576) end class Bug10557 |