summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 05:29:04 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 05:29:04 +0000
commit67ae926c5e68b656c3661aaa747d7720488c32ba (patch)
tree796a0e98a40b3824d2152fb9037ad6a8517f84cd /test/ruby
parent30635a9429930a7b31a1acd0b9aab4abe6b47529 (diff)
Don't check events from different files like r38456
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_settracefunc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb
index d879e0cfc9..9894745b6c 100644
--- a/test/ruby/test_settracefunc.rb
+++ b/test/ruby/test_settracefunc.rb
@@ -428,7 +428,6 @@ class TestSetTraceFunc < Test::Unit::TestCase
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::TestCase
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}