summaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-12-13 12:47:51 +0100
committerVicent Marti <tanoku@gmail.com>2013-12-13 12:47:51 +0100
commit7a16d54b5457aa9f60c25a204277ae0ce609ad2e (patch)
tree959269bc6fba277fcbd8bb3b48bd0bb048bcb0d7 /tests/core
parent437f7d69b22324d20fe833aa53119885733029c2 (diff)
downloadlibgit2-7a16d54b5457aa9f60c25a204277ae0ce609ad2e.tar.gz
pool: Agh, this test doesn't really apply in 32-bit machines
The size_t is 32-bit already, so it overflows before going into the function. The `-1` test should handle this gracefully in both cases anyway.
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/pool.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/core/pool.c b/tests/core/pool.c
index 7a8b2dea6..351d0c20f 100644
--- a/tests/core/pool.c
+++ b/tests/core/pool.c
@@ -141,9 +141,6 @@ void test_core_pool__strndup_limit(void)
cl_git_pass(git_pool_init(&p, 1, 100));
/* ensure 64 bit doesn't overflow */
cl_assert(git_pool_strndup(&p, "foo", (size_t)-1) == NULL);
-
- /* ensure 32 bit doesn't overflow */
- cl_assert(git_pool_strndup(&p, "bar", 0xfffffffful + 32) == NULL);
git_pool_clear(&p);
}