diff options
author | 卜部昌平 <[email protected]> | 2020-02-17 16:57:45 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-02-20 11:46:54 +0900 |
commit | 984e0233fe0c60fb5c6c5f937c214e30c1b7c6f0 (patch) | |
tree | 806756f14142aa345a4126a1402f7ece231e2539 /gc.c | |
parent | 6788c375b15232e684dbd4b993b508413f2c74a9 (diff) |
TestTime#test_memsize: skip when on GC_DEBUG
GC_DEBUG=1 makes this test fail because it changes the size of struct
RVALUE. I don't think the test is useful then. Let's just skip.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -11851,6 +11851,7 @@ Init_GC(void) rb_mGC = rb_define_module("GC"); gc_constants = rb_hash_new(); + rb_hash_aset(gc_constants, ID2SYM(rb_intern("DEBUG")), GC_DEBUG ? Qtrue : Qfalse); rb_hash_aset(gc_constants, ID2SYM(rb_intern("RVALUE_SIZE")), SIZET2NUM(sizeof(RVALUE))); rb_hash_aset(gc_constants, ID2SYM(rb_intern("HEAP_PAGE_OBJ_LIMIT")), SIZET2NUM(HEAP_PAGE_OBJ_LIMIT)); rb_hash_aset(gc_constants, ID2SYM(rb_intern("HEAP_PAGE_BITMAP_SIZE")), SIZET2NUM(HEAP_PAGE_BITMAP_SIZE)); |