diff options
| author | Vicent Marti <tanoku@gmail.com> | 2013-04-22 17:04:52 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2013-04-22 17:04:52 +0200 |
| commit | d87715926049390a2417a2476742114ec966686a (patch) | |
| tree | f5cf7daf3913578f57076c2efc94bfd1f728068c /tests-clar | |
| parent | cf9709b64eb49d5a0ee1181b80c950e518fb45b0 (diff) | |
| download | libgit2-d87715926049390a2417a2476742114ec966686a.tar.gz | |
cache: Max cache size, and evict when the cache fills upvmg/new-cache
Diffstat (limited to 'tests-clar')
| -rw-r--r-- | tests-clar/object/cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/object/cache.c b/tests-clar/object/cache.c index b36bf2726..a3eba8737 100644 --- a/tests-clar/object/cache.c +++ b/tests-clar/object/cache.c @@ -13,7 +13,7 @@ void test_object_cache__cleanup(void) git_repository_free(g_repo); g_repo = NULL; - git_libgit2_opts(GIT_OPT_SET_CACHE_LIMIT, (int)GIT_OBJ_BLOB, (size_t)0); + git_libgit2_opts(GIT_OPT_SET_CACHE_OBJECT_LIMIT, (int)GIT_OBJ_BLOB, (size_t)0); } static struct { @@ -54,7 +54,7 @@ void test_object_cache__cache_everything(void) git_odb *odb; git_libgit2_opts( - GIT_OPT_SET_CACHE_LIMIT, (int)GIT_OBJ_BLOB, (size_t)32767); + GIT_OPT_SET_CACHE_OBJECT_LIMIT, (int)GIT_OBJ_BLOB, (size_t)32767); cl_git_pass(git_repository_odb(&odb, g_repo)); @@ -103,7 +103,7 @@ void test_object_cache__cache_no_blobs(void) git_object *obj; git_odb *odb; - git_libgit2_opts(GIT_OPT_SET_CACHE_LIMIT, (int)GIT_OBJ_BLOB, (size_t)0); + git_libgit2_opts(GIT_OPT_SET_CACHE_OBJECT_LIMIT, (int)GIT_OBJ_BLOB, (size_t)0); cl_git_pass(git_repository_odb(&odb, g_repo)); |
