Merge pull request #5480 from libgit2/ethomson/coverity repo::open: ensure we can open the repository
diff --git a/tests/repo/open.c b/tests/repo/open.c
index 0f4ecf5..881a23d 100644
--- a/tests/repo/open.c
+++ b/tests/repo/open.c
@@ -36,7 +36,7 @@ void test_repo_open__format_version_1(void)
git_config_free(config);
git_repository_free(repo);
- git_repository_open(&repo, "empty_bare.git");
+ cl_git_pass(git_repository_open(&repo, "empty_bare.git"));
cl_assert(git_repository_path(repo) != NULL);
cl_assert(git__suffixcmp(git_repository_path(repo), "/") == 0);
git_repository_free(repo);
@@ -58,7 +58,7 @@ void test_repo_open__format_version_1_with_valid_extension(void)
git_config_free(config);
git_repository_free(repo);
- git_repository_open(&repo, "empty_bare.git");
+ cl_git_pass(git_repository_open(&repo, "empty_bare.git"));
cl_assert(git_repository_path(repo) != NULL);
cl_assert(git__suffixcmp(git_repository_path(repo), "/") == 0);
git_repository_free(repo);