From 8b22d862fb4419b219210027f18c1e97dd36fa8b Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Wed, 11 Dec 2013 11:55:00 -0800 Subject: 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. --- tests/diff/notify.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/diff') 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( -- cgit v1.2.1