[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67711] [ruby-trunk - Bug #10724] [TracePointAPI] Missing return event from initialize method when using `domain_name` gem

From: ko1@...
Date: 2015-01-21 04:45:46 UTC
List: ruby-core #67711
Issue #10724 has been updated by Koichi Sasada.

Assignee set to Koichi Sasada

Thank you. I can reproduce it.

```ruby
class A
  def initialize
    loop{return}
  end

  def foo
    loop { return }
  end

  def bar
  end
end

TracePoint.new(:return){|tp|
  p tp
}.enable{
  a =3D A.new
  a.foo
  a.bar
}
# #<TracePoint:return `foo'@t.rb:8>
# #<TracePoint:return `bar'@t.rb:12>
```


----------------------------------------
Bug #10724: [TracePointAPI] Missing return event from initialize method whe=
n using `domain_name` gem
https://bugs.ruby-lang.org/issues/10724#change-51143

* Author: David Rodr=C3=ADguez
* Status: Open
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -v: ruby 2.3.0dev (2015-01-09 trunk 49194) [i686-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
The domain_name gem defines a DomainName object which has a pretty complex =
`initialize` method. The TracePoint API misses the return event from this m=
ethod when instantiating a DomainName object.

I attach a failing test case.

Thanks!!

---Files--------------------------------
test_tracepoint_with_domain_name.rb (896 Bytes)
test_for_issue_10724.rb (726 Bytes)


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

In This Thread

Prev Next