ruby-changes:59075
From: Alan <ko1@a...>
Date: Thu, 5 Dec 2019 11:10:43 +0900 (JST)
Subject: [ruby-changes:59075] df76f2c577 (master): Make TracePoint.stat a singleton method again (#2726)
https://git.ruby-lang.org/ruby.git/commit/?id=df76f2c577 From df76f2c577b6567b617be2df9451123cc450d1cc Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Wed, 4 Dec 2019 21:02:21 -0500 Subject: Make TracePoint.stat a singleton method again (#2726) [Bug #16399] diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index dba940b..316e14e 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -2266,4 +2266,8 @@ class TestSetTraceFunc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L2266 bar EOS end + + def test_stat_exists + assert_instance_of Hash, TracePoint.stat + end end diff --git a/tool/test/testunit/test_parallel.rb b/tool/test/testunit/test_parallel.rb index 60fc207..d5f7cf4 100644 --- a/tool/test/testunit/test_parallel.rb +++ b/tool/test/testunit/test_parallel.rb @@ -113,7 +113,7 @@ module TestParallel https://github.com/ruby/ruby/blob/trunk/tool/test/testunit/test_parallel.rb#L113 result = Marshal.load($1.chomp.unpack("m")[0]) assert_equal(5, result[0]) - assert_equal(12, result[1]) + assert_equal(17, result[1]) assert_kind_of(Array,result[2]) assert_kind_of(Array,result[3]) assert_kind_of(Array,result[4]) diff --git a/trace_point.rb b/trace_point.rb index 9be9050..a8c46a0 100644 --- a/trace_point.rb +++ b/trace_point.rb @@ -114,7 +114,7 @@ class TracePoint https://github.com/ruby/ruby/blob/trunk/trace_point.rb#L114 # It may be changed in future. # # This method is only for debugging TracePoint itself. - def stat + def self.stat __builtin_tracepoint_stat_s end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/