]> git.proxmox.com Git - libgit2.git/commitdiff
Modified test for revwalk_hidecb
authorAnurag Gupta <anugupta@microsoft.com>
Mon, 24 Mar 2014 18:02:02 +0000 (11:02 -0700)
committerAnurag Gupta <anugupta@microsoft.com>
Mon, 24 Mar 2014 18:21:01 +0000 (11:21 -0700)
tests/revwalk/hidecb.c

index 4c43f613b9ab662ffe473b7d51f963d9099439ae..c13a1774719e22740f4d426d9c0d2b3416bd3565 100644 (file)
@@ -60,7 +60,7 @@ static int hide_none_cb(const git_oid *commit_id, void *data)
 /* Hide some commits */
 static int hide_commit_cb(const git_oid *commit_id, void *data)
 {
-       if (0 == git_oid_cmp(commit_id, &commit_ids[3]))
+       if (0 == git_oid_cmp(commit_id, &commit_ids[5]))
                return 1;
        else
                return 0;
@@ -165,7 +165,7 @@ void test_revwalk_hidecb__hide_some_commits(void)
                i++;
        }
 
-       cl_assert_equal_i(i, 3);
+       cl_assert_equal_i(i, 4);
        cl_assert_equal_i(error, GIT_ITEROVER);
 
        git_revwalk_free(walk);