init.c 341 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "clar_libgit2.h"

void test_core_init__returns_count(void)
{
	/* libgit2_clar initializes us first, so we have an existing
	 * initialization.
	 */
	cl_assert_equal_i(2, git_libgit2_init());
	cl_assert_equal_i(3, git_libgit2_init());

	cl_assert_equal_i(2, git_libgit2_shutdown());
	cl_assert_equal_i(1, git_libgit2_shutdown());
}