Commit 1cb9b31e51edc85b876f52c4efae4951971d2b82

Ben Straub 2012-03-30T13:05:54

t13-threads.c ported.

diff --git a/tests-clar/threads/basic.c b/tests-clar/threads/basic.c
new file mode 100644
index 0000000..2b1c368
--- /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);
+}