diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-04 04:05:36 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-04 04:05:48 +0000 |
commit | 5a5ff168b185dde16aef4fa11c7f9d53e7f92e46 (patch) | |
tree | 5ae137c68cf48ab8b7ce0a0d4556d8a024126c17 | |
parent | Swap out deprecated giterr_last for git_error_last (diff) | |
download | gentoobrowse-api-5a5ff168b185dde16aef4fa11c7f9d53e7f92e46.tar.bz2 gentoobrowse-api-5a5ff168b185dde16aef4fa11c7f9d53e7f92e46.tar.xz gentoobrowse-api-5a5ff168b185dde16aef4fa11c7f9d53e7f92e46.zip |
Fix up test gitErrorMessage
-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); |