diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-04-03 09:17:52 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-04-03 09:33:22 +0100 |
commit | cb0cfc5acb1ac497625d894cb51f8eed88d1c360 (patch) | |
tree | bcfe5297a662437b482c87e8939721aa5542e5bc /tests | |
parent | dfd7fcc41c588280f8fada2b86ecdb95bb1025a2 (diff) | |
download | libgit2-cb0cfc5acb1ac497625d894cb51f8eed88d1c360.tar.gz |
repo::open: ensure we can open the repositoryethomson/coverity
Update the test cases to check the `git_repository_open` return code.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/repo/open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/repo/open.c b/tests/repo/open.c index 0f4ecf5eb..881a23d34 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); |