summaryrefslogtreecommitdiff
path: root/tests/rebase/iterator.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-02-13 10:44:19 -0500
committerEdward Thomson <ethomson@microsoft.com>2015-02-13 10:44:19 -0500
commit92e87dd74974ccad8e0dbd8dd212bfc514ba441d (patch)
treeb9b4593d7fdf0af975fde7b0be3ada6d38b1d02f /tests/rebase/iterator.c
parent57f45e7f4dd7202607f51292a816a262622e964c (diff)
downloadlibgit2-92e87dd74974ccad8e0dbd8dd212bfc514ba441d.tar.gz
rebase: provide NULL `exec` on non-EXEC operations
Users may want to try to pay attention to the `exec` field on all rebase operations.
Diffstat (limited to 'tests/rebase/iterator.c')
-rw-r--r--tests/rebase/iterator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/rebase/iterator.c b/tests/rebase/iterator.c
index ddf4413d3..8117a094a 100644
--- a/tests/rebase/iterator.c
+++ b/tests/rebase/iterator.c
@@ -42,6 +42,7 @@ static void test_operations(git_rebase *rebase, size_t expected_current)
operation = git_rebase_operation_byindex(rebase, i);
cl_assert_equal_i(GIT_REBASE_OPERATION_PICK, operation->type);
cl_assert_equal_oid(&expected_oid[i], &operation->id);
+ cl_assert_equal_p(NULL, operation->exec);
}
}