ruby-changes:44569
From: shugo <ko1@a...>
Date: Mon, 7 Nov 2016 00:33:15 +0900 (JST)
Subject: [ruby-changes:44569] shugo:r56642 (trunk): confirm that status.termsig is not nil.
shugo 2016-11-07 00:33:10 +0900 (Mon, 07 Nov 2016) New Revision: 56642 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56642 Log: confirm that status.termsig is not nil. Modified files: trunk/test/ruby/test_optimization.rb Index: test/ruby/test_optimization.rb =================================================================== --- test/ruby/test_optimization.rb (revision 56641) +++ test/ruby/test_optimization.rb (revision 56642) @@ -317,7 +317,7 @@ class TestRubyOptimization < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/ruby/test_optimization.rb#L317 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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_optimization.rb#L354 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/