blob: 6d06693a8202b629749cedba8a65bfce377cd8dd [file] [log] [blame]
#include "clar_libgit2.h"
#include "global.h"
void test_core_useragent__get(void)
{
const char *custom_name = "super duper git";
cl_assert_equal_p(NULL, git_libgit2__user_agent());
cl_git_pass(git_libgit2_opts(GIT_OPT_SET_USER_AGENT, custom_name));
cl_assert_equal_s(custom_name, git_libgit2__user_agent());
}