diff options
author | Vicent Marti <tanoku@gmail.com> | 2015-11-12 22:51:01 +0300 |
---|---|---|
committer | Carlos MartÃn Nieto <cmn@dwim.me> | 2015-11-13 06:57:19 +0300 |
commit | 7ff7ca623e9ea8c55cb1dab8ce998dd48c0aeb68 (patch) | |
tree | f22d08a8f2796bc779aefe1b5a276fad8d658634 /tests/core | |
parent | 75a0ccf52fef2cab281de886730cda595d3736aa (diff) |
pool: Never return unaligned buffers
Diffstat (limited to 'tests/core')
-rw-r--r-- | tests/core/pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core/pool.c b/tests/core/pool.c index f90adfbc3..c43c1db67 100644 --- a/tests/core/pool.c +++ b/tests/core/pool.c @@ -32,7 +32,7 @@ void test_core_pool__1(void) cl_assert(git_pool_malloc(&p, i) != NULL); /* with fixed page size, allocation must end up with these values */ - cl_assert_equal_i(590, git_pool__open_pages(&p)); + cl_assert_equal_i(591, git_pool__open_pages(&p)); git_pool_clear(&p); git_pool_init(&p, 1); @@ -42,7 +42,7 @@ void test_core_pool__1(void) cl_assert(git_pool_malloc(&p, i) != NULL); /* with fixed page size, allocation must end up with these values */ - cl_assert_equal_i(573, git_pool__open_pages(&p)); + cl_assert_equal_i(sizeof(void *) == 8 ? 575 : 573, git_pool__open_pages(&p)); git_pool_clear(&p); } |