From 1d07bb84f8e9b93d69969f8dcfe3995036493d47 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 16 Mar 2018 12:06:55 +0000 Subject: [PATCH] test_iseq.rb: skip iseq with coverage * test/ruby/test_iseq.rb (test_to_binary_with_objects): #to_binary does not support iseq compiled with coverage, just skip. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_iseq.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 1a45778cc4..e15d574822 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -399,7 +399,12 @@ class TestISeq < Test::Unit::TestCase def test_to_binary_with_objects code = "[]"+100.times.map{|i|"< e + skip e.message if /compile with coverage/ =~ e.message + raise + end iseq2 = RubyVM::InstructionSequence.load_from_binary(bin) assert_equal(iseq2.to_a, iseq.to_a) end