mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 00:43:41 +00:00

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.
26 lines
366 B
C
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;
|
|
}
|