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:
authorBen Straub <ben@straubnet.net>2012-03-31 00:05:54 +0400
committerBen Straub <ben@straubnet.net>2012-03-31 00:05:54 +0400
commit1cb9b31e51edc85b876f52c4efae4951971d2b82 (patch)
tree2a521e800707073845fb9e343df4b85194f55823 /tests-clar/threads
parent7c3a4a7f07bc0d7fb552b75be6a71d43b8d3bb23 (diff)
t13-threads.c ported.
Diffstat (limited to 'tests-clar/threads')
-rw-r--r--tests-clar/threads/basic.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests-clar/threads/basic.c b/tests-clar/threads/basic.c
new file mode 100644
index 000000000..2b1c36808
--- /dev/null
+++ b/tests-clar/threads/basic.c
@@ -0,0 +1,20 @@
+#include "clar_libgit2.h"
+
+#include "cache.h"
+
+
+static git_repository *g_repo;
+
+void test_threads_basic__initialize(void) {
+ g_repo = cl_git_sandbox_init("testrepo");
+}
+
+void test_threads_basic__cleanup(void) {
+ cl_git_sandbox_cleanup();
+}
+
+
+void test_threads_basic__cache(void) {
+ // run several threads polling the cache at the same time
+ cl_assert(1 == 1);
+}