mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-01 21:37:49 +00:00
repository: ensure git_repository_open() returns ENOTFOUND when being passed a path leading to no repository
This commit is contained in:
parent
9abb5bca5d
commit
d7d8a0bfd4
@ -274,3 +274,9 @@ void test_repo_open__win32_path(void)
|
||||
git_buf_free(&winpath);
|
||||
#endif
|
||||
}
|
||||
|
||||
void test_repo_open__opening_a_non_existing_repository_returns_ENOTFOUND(void)
|
||||
{
|
||||
git_repository *repo;
|
||||
cl_assert_equal_i(GIT_ENOTFOUND, git_repository_open(&repo, "i-do-not/exist"));
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user