summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-06 15:33:10 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-06 15:33:10 +0000
commitfd9f38348c1247acd0d18312f25e859476eec7a7 (patch)
tree602694e5a3f5bd6235647b66246cd4cce7b3f923 /test
parent90bf4a8edb295308d07584d94366998ad0a7e988 (diff)
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.rb7
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