summaryrefslogtreecommitdiff
path: root/tests/diff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-12-11 11:55:00 -0800
committerRussell Belfer <rb@github.com>2013-12-11 11:55:00 -0800
commit8b22d862fb4419b219210027f18c1e97dd36fa8b (patch)
treeb3a8f9f72160ad20f8ef4ce1c7167c4891d85275 /tests/diff
parent8046b26cb1e06ef7699d16395598754a8ec5564b (diff)
downloadlibgit2-8b22d862fb4419b219210027f18c1e97dd36fa8b.tar.gz
More improvements to callback return value tests
This time actually checking return values in diff notify tests and actually testing callbacks for the index all-all/update-all/etc functions.
Diffstat (limited to 'tests/diff')
-rw-r--r--tests/diff/notify.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/diff/notify.c b/tests/diff/notify.c
index f6accd004..da7390d3f 100644
--- a/tests/diff/notify.c
+++ b/tests/diff/notify.c
@@ -182,10 +182,12 @@ void test_diff_notify__notify_cb_can_abort_diff(void)
opts.pathspec.count = 1;
pathspec = "file_deleted";
- cl_git_fail(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts));
+ cl_git_fail_with(
+ git_diff_index_to_workdir(&diff, g_repo, NULL, &opts), -42);
pathspec = "staged_changes_modified_file";
- cl_git_fail(git_diff_index_to_workdir(&diff, g_repo, NULL, &opts));
+ cl_git_fail_with(
+ git_diff_index_to_workdir(&diff, g_repo, NULL, &opts), -42);
}
static int filter_all(