aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-16 04:12:48 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-16 04:12:48 +0000
commitdfa892af437d7c6e01406134a5baded91b4db541 (patch)
tree39856affe8ca9d8a96cca8eabc3961802cd3f1ba /test/ruby/test_gc.rb
parentd87de0851216cf0a104748b8e139b73f59758c60 (diff)
downloadruby-dfa892af437d7c6e01406134a5baded91b4db541.tar.gz
* gc.c: introduce GC.verify_internal_consistency method to verify GC
internal data structure. Now this method only checks geneartion (old/young) consistency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r--test/ruby/test_gc.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 18d4a43358..eb8d019679 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -278,4 +278,8 @@ class TestGc < Test::Unit::TestCase
end;
end
end
+
+ def test_verify_internal_consistency
+ assert_nil(GC.verify_internal_consistency)
+ end
end