Commit d7d8a0bf by nulltoken

repository: ensure git_repository_open() returns ENOTFOUND when being passed a…

repository: ensure git_repository_open() returns ENOTFOUND when being passed a path leading to no repository
parent 9abb5bca
......@@ -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"));
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment