diff options
author | Akira TAGOH <akira@tagoh.org> | 2011-03-22 20:42:07 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2011-03-22 20:42:07 +0900 |
commit | 0917f39e073109d2a006807f63429352c3b7c3d5 (patch) | |
tree | 1e4be5525d7b0231343f3cb6bb6bbf9b4c3cd241 | |
parent | 70f9ea6b8d816ba462be3a2c73caaa6852f2f10b (diff) |
fix a testcase because of the block size changes
-rw-r--r-- | tests/hgallocator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hgallocator.c b/tests/hgallocator.c index 56952fe..46b63ed 100644 --- a/tests/hgallocator.c +++ b/tests/hgallocator.c @@ -103,13 +103,13 @@ TDEF (alloc) retval = vtable->initialize(); fail_unless(retval != NULL, "Unable to initialize the allocator."); - fail_unless(vtable->expand_heap(retval, 256), "Unable to initialize the heap."); + fail_unless(vtable->expand_heap(retval, 320), "Unable to initialize the heap."); t = vtable->alloc(retval, 128, 0, NULL); fail_unless(t != Qnil, "Unable to allocate the memory."); t2 = vtable->alloc(retval, 64, 0, NULL); fail_unless(t2 != Qnil, "Unable to allocate the memory."); - t3 = vtable->alloc(retval, 128, 0, NULL); + t3 = vtable->alloc(retval, 182, 0, NULL); fail_unless(t3 == Qnil, "Should be no free spaces available."); vtable->free(retval, t); @@ -158,7 +158,7 @@ TDEF (realloc) fail_unless(p == p2, "Unexpected result to grow the space."); t3 = vtable->alloc(retval, 8, 0, NULL); fail_unless(t3 != Qnil, "Unable to allocate the memory."); - t2 = vtable->realloc(retval, t, 90, NULL); + t2 = vtable->realloc(retval, t, 128, NULL); fail_unless(t2 != Qnil, "Unable to re-allocate the memory."); fail_unless(t != t2, "Unexpected result to keep quark."); p2 = vtable->lock_object(retval, t2); |