diff options
Diffstat (limited to 'test/ruby/test_time.rb')
-rw-r--r-- | test/ruby/test_time.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/ruby/test_time.rb b/test/ruby/test_time.rb index 2bf6056a49..f47a49d3e0 100644 --- a/test/ruby/test_time.rb +++ b/test/ruby/test_time.rb @@ -1403,11 +1403,8 @@ class TestTime < Test::Unit::TestCase else RbConfig::SIZEOF["void*"] # Same size as VALUE end - expect = - GC::INTERNAL_CONSTANTS[:BASE_SLOT_SIZE] + - sizeof_timew + - RbConfig::SIZEOF["void*"] * 4 + 5 + # vtm - 1 # tzmode, tm_got + sizeof_vtm = RbConfig::SIZEOF["void*"] * 4 + 8 + expect = GC::INTERNAL_CONSTANTS[:BASE_SLOT_SIZE] + sizeof_timew + sizeof_vtm assert_equal expect, ObjectSpace.memsize_of(t) rescue LoadError => e omit "failed to load objspace: #{e.message}" |