libgit2/tests/main.c
Carlos Martín Nieto 799e22ea0c Rename git_threads_ to git_libgit2_
This describes their purpose better, as we now initialize ssl and some
other global stuff in there. Calling the init function is not something
which has been optional for a while now.
2014-11-08 23:46:39 +01:00

26 lines
366 B
C

#include "clar_libgit2.h"
#ifdef _WIN32
int __cdecl main(int argc, char *argv[])
#else
int main(int argc, char *argv[])
#endif
{
int res;
clar_test_init(argc, argv);
git_libgit2_init();
cl_sandbox_set_search_path_defaults();
/* Run the test suite */
res = clar_test_run();
clar_test_shutdown();
giterr_clear();
git_libgit2_shutdown();
return res;
}