[ruby-cvs:68892] mame:r61711 (trunk): compile.c (iseq_compile_each0): remove irrelevant tracecoverage

mame at ruby-lang.org mame at ruby-lang.org
Tue Jan 9 15:17:21 JST 2018


mame	2018-01-09 15:17:21 +0900 (Tue, 09 Jan 2018)

  New Revision: 61711

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61711

  Log:
    compile.c (iseq_compile_each0): remove irrelevant tracecoverage
    
    This change removes tracecoverage instructions on a line that has any
    NODE but is non-significant, such as, just one literal.
    
    This fixes the following failure that occurs only when coverage is
    enabled:
    
      1) Failure:
    TestISeq#test_to_a_lines [.../ruby/test/ruby/test_iseq.rb:56]:
    <[3, 4, 7, 9]> expected but was
    <[3, 4, 5, 6, 7, 8, 9]>.

  Modified files:
    trunk/compile.c


More information about the ruby-cvs mailing list