diff options
author | Anurag Gupta <anugupta@microsoft.com> | 2014-03-24 11:02:02 -0700 |
---|---|---|
committer | Anurag Gupta <anugupta@microsoft.com> | 2014-03-24 11:21:01 -0700 |
commit | 34ffe22344d32d1574dc33d3c3d20556fdb152a7 (patch) | |
tree | 8a56ef72f0758ab4fddf102671dde1de6ca21fb0 | |
parent | 892b7c9fef3aa48574b784e48a8747e77e83865b (diff) | |
download | libgit2-34ffe22344d32d1574dc33d3c3d20556fdb152a7.tar.gz |
Modified test for revwalk_hidecb
-rw-r--r-- | tests/revwalk/hidecb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/revwalk/hidecb.c b/tests/revwalk/hidecb.c index 4c43f613b..c13a17747 100644 --- a/tests/revwalk/hidecb.c +++ b/tests/revwalk/hidecb.c @@ -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); |