mirror of
https://git.proxmox.com/git/libgit2
synced 2026-08-26 20:34:15 +00:00
tests: provide better pass/failure error messages
Provide more detailed messages when conditions pass or fail unexpectedly. In particular, this provides the error messages when a test fails with a different error code than was expected.
This commit is contained in:
@@ -204,7 +204,7 @@ void assert__submodule_exists(
|
||||
git_submodule *sm;
|
||||
int error = git_submodule_lookup(&sm, repo, name);
|
||||
if (error)
|
||||
cl_git_report_failure(error, file, line, msg);
|
||||
cl_git_report_failure(error, 0, file, line, msg);
|
||||
cl_assert_at_line(sm != NULL, file, line);
|
||||
git_submodule_free(sm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user