ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:90764] [Ruby trunk Bug#15476] Branch coverage: Failing to load trivial sample when branch coverage is on
       [not found] <redmine.issue-15476.20181228044901@ruby-lang.org>
@ 2018-12-28  4:49 ` hunter_spawn
  2018-12-28  4:52 ` [ruby-core:90765] " hunter_spawn
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: hunter_spawn @ 2018-12-28  4:49 UTC (permalink / raw)
  To: ruby-core

Issue #15476 has been reported by MaxLap (Maxime Lapointe).

----------------------------------------
Bug #15476: Branch coverage: Failing to load trivial sample when branch coverage is on
https://bugs.ruby-lang.org/issues/15476

* Author: MaxLap (Maxime Lapointe)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.6.0
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
The following will fail (for the second #load) on 2.6.0
I assume this is Ruby removing useless code, and the branch coverage code handling it incorrectly.

~~~ ruby
require 'tempfile'
f = Tempfile.new(['ruby', '.rb'])
f.write(<<-RUBY)
  nil&.map { |i| i }
RUBY
f.close

require 'coverage'

load f.path
puts 'Without coverage worked'
Coverage.start(branches: true)
load f.path
puts 'With coverage worked'
~~~

This problem was not present in 2.5, but appeared in 2.6




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:90765] [Ruby trunk Bug#15476] Branch coverage: Failing to load trivial sample when branch coverage is on
       [not found] <redmine.issue-15476.20181228044901@ruby-lang.org>
  2018-12-28  4:49 ` [ruby-core:90764] [Ruby trunk Bug#15476] Branch coverage: Failing to load trivial sample when branch coverage is on hunter_spawn
@ 2018-12-28  4:52 ` hunter_spawn
  2019-01-01  1:53 ` [ruby-core:90841] [Ruby trunk Bug#15476][Open] " mame
  2019-01-14  6:34 ` [ruby-core:91070] [Ruby trunk Bug#15476] Branch coverage: Failing to load trivialsample " naruse
  3 siblings, 0 replies; 4+ messages in thread
From: hunter_spawn @ 2018-12-28  4:52 UTC (permalink / raw)
  To: ruby-core

Issue #15476 has been updated by MaxLap (Maxime Lapointe).


Sorry, forgot to include the error message:
~~~
/tmp/ruby20181227-3429-1ubxjqu.rb:1:in `<top (required)>': no implicit conversion of false into Integer (TypeError)
~~~


----------------------------------------
Bug #15476: Branch coverage: Failing to load trivial sample when branch coverage is on
https://bugs.ruby-lang.org/issues/15476#change-75938

* Author: MaxLap (Maxime Lapointe)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
The following will fail (for the second #load) on 2.6.0
I assume this is Ruby removing useless code, and the branch coverage code handling it incorrectly.

~~~ ruby
require 'tempfile'
f = Tempfile.new(['ruby', '.rb'])
f.write(<<-RUBY)
  nil&.map { |i| i }
RUBY
f.close

require 'coverage'

load f.path
puts 'Without coverage worked'
Coverage.start(branches: true)
load f.path
puts 'With coverage worked'
~~~

This problem was not present in 2.5, but appeared in 2.6




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:90841] [Ruby trunk Bug#15476][Open] Branch coverage: Failing to load trivial sample when branch coverage is on
       [not found] <redmine.issue-15476.20181228044901@ruby-lang.org>
  2018-12-28  4:49 ` [ruby-core:90764] [Ruby trunk Bug#15476] Branch coverage: Failing to load trivial sample when branch coverage is on hunter_spawn
  2018-12-28  4:52 ` [ruby-core:90765] " hunter_spawn
@ 2019-01-01  1:53 ` mame
  2019-01-14  6:34 ` [ruby-core:91070] [Ruby trunk Bug#15476] Branch coverage: Failing to load trivialsample " naruse
  3 siblings, 0 replies; 4+ messages in thread
From: mame @ 2019-01-01  1:53 UTC (permalink / raw)
  To: ruby-core

Issue #15476 has been updated by mame (Yusuke Endoh).

Status changed from Closed to Open

Sorry, I wrote a wrong ticket number.

----------------------------------------
Bug #15476: Branch coverage: Failing to load trivial sample when branch coverage is on
https://bugs.ruby-lang.org/issues/15476#change-76028

* Author: MaxLap (Maxime Lapointe)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
The following will fail (for the second #load) on 2.6.0
I assume this is Ruby removing useless code, and the branch coverage code handling it incorrectly.

~~~ ruby
require 'tempfile'
f = Tempfile.new(['ruby', '.rb'])
f.write(<<-RUBY)
  nil&.map { |i| i }
RUBY
f.close

require 'coverage'

load f.path
puts 'Without coverage worked'
Coverage.start(branches: true)
load f.path
puts 'With coverage worked'
~~~

This problem was not present in 2.5, but appeared in 2.6




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:91070] [Ruby trunk Bug#15476] Branch coverage: Failing to load trivialsample when branch coverage is on
       [not found] <redmine.issue-15476.20181228044901@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2019-01-01  1:53 ` [ruby-core:90841] [Ruby trunk Bug#15476][Open] " mame
@ 2019-01-14  6:34 ` naruse
  3 siblings, 0 replies; 4+ messages in thread
From: naruse @ 2019-01-14  6:34 UTC (permalink / raw)
  To: ruby-core

Issue #15476 has been updated by naruse (Yui NARUSE).

Backport changed from 2.4: DONTNEED, 2.5: DONTNEED, 2.6: REQUIRED to 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONE

ruby_2_6 r66813 merged revision(s) 66670,66676.

----------------------------------------
Bug #15476: Branch coverage: Failing to load trivial sample when branch coverage is on
https://bugs.ruby-lang.org/issues/15476#change-76294

* Author: MaxLap (Maxime Lapointe)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
* Backport: 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONE
----------------------------------------
The following will fail (for the second #load) on 2.6.0
I assume this is Ruby removing useless code, and the branch coverage code handling it incorrectly.

~~~ ruby
require 'tempfile'
f = Tempfile.new(['ruby', '.rb'])
f.write(<<-RUBY)
  nil&.map { |i| i }
RUBY
f.close

require 'coverage'

load f.path
puts 'Without coverage worked'
Coverage.start(branches: true)
load f.path
puts 'With coverage worked'
~~~

This problem was not present in 2.5, but appeared in 2.6




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-14  6:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-15476.20181228044901@ruby-lang.org>
2018-12-28  4:49 ` [ruby-core:90764] [Ruby trunk Bug#15476] Branch coverage: Failing to load trivial sample when branch coverage is on hunter_spawn
2018-12-28  4:52 ` [ruby-core:90765] " hunter_spawn
2019-01-01  1:53 ` [ruby-core:90841] [Ruby trunk Bug#15476][Open] " mame
2019-01-14  6:34 ` [ruby-core:91070] [Ruby trunk Bug#15476] Branch coverage: Failing to load trivialsample " naruse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).