diff options
Diffstat (limited to 'boehm-gc/test.c')
-rw-r--r-- | boehm-gc/test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/boehm-gc/test.c b/boehm-gc/test.c index 96a5415..9254fa8 100644 --- a/boehm-gc/test.c +++ b/boehm-gc/test.c @@ -958,17 +958,17 @@ void run_one_test() "This test program is not designed for leak detection mode\n"); (void)GC_printf0("Expect lots of problems.\n"); # endif - if (GC_size(GC_malloc(7)) != 8 + if (GC_size(GC_malloc(7)) != 8 && + GC_size(GC_malloc(7)) != MIN_WORDS * sizeof(GC_word) || GC_size(GC_malloc(15)) != 16) { (void)GC_printf0("GC_size produced unexpected results\n"); FAIL; } - if (GC_size(GC_malloc(0)) != 4 && GC_size(GC_malloc(0)) != 8) { + if (GC_size(GC_malloc(0)) != MIN_WORDS * sizeof(GC_word)) { (void)GC_printf0("GC_malloc(0) failed\n"); FAIL; } - if (GC_size(GC_malloc_uncollectable(0)) != 4 - && GC_size(GC_malloc_uncollectable(0)) != 8) { + if (GC_size(GC_malloc_uncollectable(0)) != MIN_WORDS * sizeof(GC_word)) { (void)GC_printf0("GC_malloc_uncollectable(0) failed\n"); FAIL; } |