ruby-changes:32614
From: ko1 <ko1@a...>
Date: Thu, 23 Jan 2014 20:20:01 +0900 (JST)
Subject: [ruby-changes:32614] ko1:r44693 (trunk): * test/ruby/test_settracefunc.rb: check the target thread.
ko1 2014-01-23 20:19:58 +0900 (Thu, 23 Jan 2014) New Revision: 44693 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44693 Log: * test/ruby/test_settracefunc.rb: check the target thread. Modified files: trunk/ChangeLog trunk/test/ruby/test_settracefunc.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 44692) +++ ChangeLog (revision 44693) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jan 23 20:06:27 2014 Koichi Sasada <ko1@a...> + + * test/ruby/test_settracefunc.rb: check the target thread. + Thu Jan 23 19:59:16 2014 Koichi Sasada <ko1@a...> * test/ruby/test_settracefunc.rb: check the target thread. Index: test/ruby/test_settracefunc.rb =================================================================== --- test/ruby/test_settracefunc.rb (revision 44692) +++ test/ruby/test_settracefunc.rb (revision 44693) @@ -1074,6 +1074,7 @@ class TestSetTraceFunc < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L1074 events = [] assert !defined?(MISSING_CONSTANT_59398) TracePoint.new(:c_call, :c_return, :call, :return){|tp| + next if !target_thread? next unless tp.defined_class == Module # rake/ext/module.rb aliases :const_missing and Ruby uses the aliased name # but this only happens when running the full test suite @@ -1104,6 +1105,7 @@ class TestSetTraceFunc < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L1105 events = [] aliased = AliasedRubyMethod.new TracePoint.new(:call, :return){|tp| + next if !target_thread? events << [tp.event, tp.method_id] }.enable{ aliased.bar @@ -1122,6 +1124,7 @@ class TestSetTraceFunc < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L1124 events = [] aliased = AliasedCMethod.new TracePoint.new(:call, :return, :c_call, :c_return){|tp| + next if !target_thread? events << [tp.event, tp.method_id] }.enable{ aliased.size @@ -1139,6 +1142,7 @@ class TestSetTraceFunc < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L1142 events = [] assert !respond_to?(:missing_method_59398) TracePoint.new(:c_call, :c_return, :call, :return){|tp| + next if !target_thread? next unless tp.defined_class == BasicObject # rake/ext/module.rb aliases :const_missing and Ruby uses the aliased name # but this only happens when running the full test suite -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/