Commit 390431c3 by Adam Niedzielski Committed by Patrick Steinhardt

revwal: add failing test for walking with topo-sort

parent dad3c319
......@@ -331,6 +331,20 @@ void test_revwalk_basic__hide_then_push(void)
cl_assert_equal_i(i, 0);
}
void test_revwalk_basic__topo_crash(void)
{
git_oid oid;
git_oid_fromstr(&oid, "5b5b025afb0b4c913b4c338a42934a3863bf3644");
revwalk_basic_setup_walk(NULL);
git_revwalk_sorting(_walk, GIT_SORT_TOPOLOGICAL);
cl_git_pass(git_revwalk_push(_walk, &oid));
cl_git_pass(git_revwalk_hide(_walk, &oid));
git_revwalk_next(&oid, _walk);
}
void test_revwalk_basic__push_range(void)
{
revwalk_basic_setup_walk(NULL);
......
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