summaryrefslogtreecommitdiff
path: root/tests-clar/main.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-12-19 00:12:26 +0100
committerVicent Marti <tanoku@gmail.com>2013-01-02 02:05:11 +0100
commit156cfec096fd71cbd6d15592e80d164b8f3b55ad (patch)
treecd094a1cbf813efe0d6f33e3cdd1a3477ea44b2a /tests-clar/main.c
parent036e81f72613e59fdf344af57ed0a381ade356b0 (diff)
downloadlibgit2-156cfec096fd71cbd6d15592e80d164b8f3b55ad.tar.gz
Cleanup Clar to make it SIMPLER
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;
+}