summaryrefslogtreecommitdiff
path: root/tests-clar/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests-clar/main.c')
-rw-r--r--tests-clar/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests-clar/main.c b/tests-clar/main.c
new file mode 100644
index 000000000..e9b3b641c
--- /dev/null
+++ b/tests-clar/main.c
@@ -0,0 +1,16 @@
+#include "clar_libgit2.h"
+
+int main(int argc, char *argv[])
+{
+ int res;
+
+ git_threads_init();
+
+ /* Run the test suite */
+ res = clar_test(argc, argv);
+
+ giterr_clear();
+ git_threads_shutdown();
+
+ return res;
+}