1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_settracefunc.rb: fix expected traces for

RubyVM::FrozenCore's event and r17744.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2008-07-01 18:43:25 +00:00
parent 9a61579c16
commit 9e2a51ccb6
2 changed files with 40 additions and 25 deletions

View file

@ -1,3 +1,8 @@
Wed Jul 2 03:42:44 2008 Yusuke Endoh <mame@tsg.ne.jp>
* test/ruby/test_settracefunc.rb: fix expected traces for
RubyVM::FrozenCore's event and r17744.
Wed Jul 2 03:10:41 2008 Koichi Sasada <ko1@atdot.net>
* compile.h, insns.def: reduce insn operand of "trace".

View file

@ -54,10 +54,14 @@ class TestSetTraceFunc < Test::Unit::TestCase
events.shift)
assert_equal(["line", 4, __method__, self.class],
events.shift)
assert_equal(["c-call", 4, :core_define_method, RubyVM::FrozenCore],
events.shift)
assert_equal(["c-call", 4, :method_added, Module],
events.shift)
assert_equal(["c-return", 4, :method_added, Module],
events.shift)
assert_equal(["c-return", 4, :core_define_method, RubyVM::FrozenCore],
events.shift)
assert_equal(["line", 7, __method__, self.class],
events.shift)
assert_equal(["call", 6, :add, self.class],
@ -102,10 +106,14 @@ class TestSetTraceFunc < Test::Unit::TestCase
events.shift)
assert_equal(["line", 5, nil, nil],
events.shift)
assert_equal(["c-call", 5, :core_define_method, RubyVM::FrozenCore],
events.shift)
assert_equal(["c-call", 5, :method_added, Module],
events.shift)
assert_equal(["c-return", 5, :method_added, Module],
events.shift)
assert_equal(["c-return", 5, :core_define_method, RubyVM::FrozenCore],
events.shift)
assert_equal(["end", 7, nil, nil],
events.shift)
assert_equal(["line", 8, __method__, self.class],
@ -145,33 +153,35 @@ class TestSetTraceFunc < Test::Unit::TestCase
events.shift)
assert_equal(["line", 4, __method__, self.class],
events.shift)
assert_equal(["c-call", 4, :raise, Kernel],
events.shift)
assert_equal(["c-call", 4, :new, Class],
events.shift)
assert_equal(["c-call", 4, :initialize, Exception],
events.shift)
assert_equal(["c-return", 4, :initialize, Exception],
events.shift)
assert_equal(["c-return", 4, :new, Class],
events.shift)
assert_equal(["c-call", 4, :backtrace, Exception],
events.shift)
assert_equal(["c-return", 4, :backtrace, Exception],
events.shift)
assert_equal(["c-call", 4, :set_backtrace, Exception],
events.shift)
assert_equal(["c-return", 4, :set_backtrace, Exception],
events.shift)
assert_equal(["raise", 4, :test_raise, TestSetTraceFunc],
events.shift)
assert_equal(["c-call", 4, :===, Module],
events.shift)
assert_equal(["c-return", 4, :===, Module],
events.shift)
assert_equal(["line", 5, __method__, self.class],
events.shift)
assert_equal(["c-call", 5, :set_trace_func, Kernel],
assert_equal(["c-call", 5, :raise, Kernel],
events.shift)
assert_equal(["c-call", 5, :exception, Exception],
events.shift)
assert_equal(["c-call", 5, :initialize, Exception],
events.shift)
assert_equal(["c-return", 5, :initialize, Exception],
events.shift)
assert_equal(["c-return", 5, :exception, Exception],
events.shift)
assert_equal(["c-call", 5, :backtrace, Exception],
events.shift)
assert_equal(["c-return", 5, :backtrace, Exception],
events.shift)
assert_equal(["c-call", 5, :set_backtrace, Exception],
events.shift)
assert_equal(["c-return", 5, :set_backtrace, Exception],
events.shift)
assert_equal(["raise", 5, :test_raise, TestSetTraceFunc],
events.shift)
assert_equal(["c-call", 6, :===, Module],
events.shift)
assert_equal(["c-return", 6, :===, Module],
events.shift)
assert_equal(["line", 8, __method__, self.class],
events.shift)
assert_equal(["c-call", 8, :set_trace_func, Kernel],
events.shift)
assert_equal([], events)
end