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:
authorEdward Thomson <ethomson@microsoft.com>2013-05-30 01:03:30 +0400
committerEdward Thomson <ethomson@microsoft.com>2013-05-30 01:26:25 +0400
commit2d160ef782c812bd7d68413a00a62f46585725d0 (patch)
treec771fbfe1bc5a8a6dc47c0f14b5e94936b7bbcde /tests-clar/core
parent17776314c8d161d78917e5fb2805d78a3c8c3599 (diff)
allow (ignore) bare slash in gitignore
Diffstat (limited to 'tests-clar/core')
-rw-r--r--tests-clar/core/pool.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests-clar/core/pool.c b/tests-clar/core/pool.c
index c42bb6da0..3073c4a45 100644
--- a/tests-clar/core/pool.c
+++ b/tests-clar/core/pool.c
@@ -133,3 +133,13 @@ void test_core_pool__free_list(void)
git_pool_clear(&p);
}
+
+void test_core_pool__strndup_limit(void)
+{
+ git_pool p;
+
+ cl_git_pass(git_pool_init(&p, 1, 100));
+ cl_assert(git_pool_strndup(&p, "foo", -1) == NULL);
+ git_pool_clear(&p);
+}
+