ruby-changes:26407
From: naruse <ko1@a...>
Date: Wed, 19 Dec 2012 14:29:15 +0900 (JST)
Subject: [ruby-changes:26407] naruse:r38458 (trunk): Don't check events from different files like r38456
naruse 2012-12-19 14:29:04 +0900 (Wed, 19 Dec 2012) New Revision: 38458 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38458 Log: Don't check events from different files like r38456 Modified files: trunk/test/ruby/test_settracefunc.rb Index: test/ruby/test_settracefunc.rb =================================================================== --- test/ruby/test_settracefunc.rb (revision 38457) +++ test/ruby/test_settracefunc.rb (revision 38458) @@ -428,7 +428,6 @@ class TestSetTraceFunc < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L428 when /Class:TracePoint/; return TracePoint when /Class:Exception/; return Exception else klass - klass end rescue Exception => e e @@ -695,6 +694,7 @@ class TestSetTraceFunc < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L694 def test_tracepoint_return_value trace = TracePoint.new(:call, :return){|tp| + break if tp.path != __FILE__ case tp.event when :call assert_raise(RuntimeError) {tp.return_value} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/