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:
authorRussell Belfer <rb@github.com>2013-04-17 01:19:27 +0400
committerVicent Marti <tanoku@gmail.com>2013-04-22 18:52:07 +0400
commit38eef6113d8523abfe6746bf727cee2651398ad3 (patch)
tree3565c7cacc968d8ddf05a8c551e3202a7a08436c /tests-clar/object
parentc628918625c7f779d2050a56998fb2b675f097fb (diff)
Make indexer use shared packfile open code
The indexer was creating a packfile object separately from the code in pack.c which was a problem since I put a call to git_mutex_init into just pack.c. This commit updates the pack function for creating a new pack object (i.e. git_packfile_check()) so that it can be used in both places and then makes indexer.c use the shared initialization routine. There are also a few minor formatting and warning message fixes.
Diffstat (limited to 'tests-clar/object')
-rw-r--r--tests-clar/object/cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/object/cache.c b/tests-clar/object/cache.c
index 8121247c9..ed13a6fa8 100644
--- a/tests-clar/object/cache.c
+++ b/tests-clar/object/cache.c
@@ -213,16 +213,16 @@ void test_object_cache__threadmania(void)
fn = (th & 1) ? cache_parsed : cache_raw;
#ifdef GIT_THREADS
- git_thread_create(&t[th], NULL, fn, data);
+ cl_git_pass(git_thread_create(&t[th], NULL, fn, data));
#else
- fn(data);
+ cl_assert(fn(data) == data);
git__free(data);
#endif
}
#ifdef GIT_THREADS
for (th = 0; th < THREADCOUNT; ++th) {
- git_thread_join(t[th], &data);
+ cl_git_pass(git_thread_join(t[th], &data));
cl_assert_equal_i(th, ((int *)data)[0]);
git__free(data);
}