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

* test/ruby/test_gc.rb (test_profiler_clear): fix wrong method

calls [Bug #7419] [ruby-core:49828].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nari 2012-11-21 23:09:46 +00:00
parent 4c6a411459
commit cda3a0c75e
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Thu Nov 22 08:06:42 2012 Narihiro Nakamura <authornari@gmail.com>
* test/ruby/test_gc.rb (test_profiler_clear): fix wrong method
calls [Bug #7419] [ruby-core:49828].
Thu Nov 22 02:22:33 2012 Tadayoshi Funaba <tadf@dotrb.org> Thu Nov 22 02:22:33 2012 Tadayoshi Funaba <tadf@dotrb.org>
* NEWS: edited (order etc). * NEWS: edited (order etc).

View file

@ -124,12 +124,12 @@ class TestGc < Test::Unit::TestCase
GC.start GC.start
assert_equal(1, GC::Profiler.raw_data.size) assert_equal(1, GC::Profiler.raw_data.size)
GC.clear GC::Profiler.clear
assert_equal(0, GC::Profiler.raw_data.size) assert_equal(0, GC::Profiler.raw_data.size)
200.times{ GC.start } 200.times{ GC.start }
assert_equal(200, GC::Profiler.raw_data.size) assert_equal(200, GC::Profiler.raw_data.size)
GC.clear GC::Profiler.clear
assert_equal(0, GC::Profiler.raw_data.size) assert_equal(0, GC::Profiler.raw_data.size)
ensure ensure
GC::Profiler.disable GC::Profiler.disable