From 5a5ff168b185dde16aef4fa11c7f9d53e7f92e46 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 4 Feb 2019 04:05:36 +0000 Subject: Fix up test gitErrorMessage --- gentoobrowse-api/unittests/testUtils.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.2.3