diff options
-rw-r--r-- | gentoobrowse-api/unittests/testUtils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gentoobrowse-api/unittests/testUtils.cpp b/gentoobrowse-api/unittests/testUtils.cpp index de3dca0..bd601d9 100644 --- a/gentoobrowse-api/unittests/testUtils.cpp +++ b/gentoobrowse-api/unittests/testUtils.cpp @@ -12,6 +12,11 @@ using namespace Gentoo::Utils::Git; BOOST_AUTO_TEST_CASE( gitErrorMessage ) { xmlInitParser(); + git_libgit2_init(); + + BOOST_REQUIRE_THROW( + gitSafeGet(git_repository_open_ext, git_repository_free, "/", 0, nullptr), + Gentoo::GitError); try { gitSafeGet(git_repository_open_ext, git_repository_free, "/", 0, nullptr); |