Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2015-11-12 22:51:01 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-11-13 06:57:19 +0300
commit7ff7ca623e9ea8c55cb1dab8ce998dd48c0aeb68 (patch)
treef22d08a8f2796bc779aefe1b5a276fad8d658634 /tests/core
parent75a0ccf52fef2cab281de886730cda595d3736aa (diff)
pool: Never return unaligned buffers
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/pool.c4
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);
}