diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-02-03 03:36:07 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2015-02-02 22:46:43 -0500 |
commit | 60561d54468d7097e04466fd8125be5231cea637 (patch) | |
tree | 57d2160b3b6a993f15de08608a8f7a833af79fac | |
parent | 2fbce0bfaca90dd71a2cc10a7fa82088150e04b7 (diff) | |
download | libgit2-60561d54468d7097e04466fd8125be5231cea637.tar.gz |
tests: update for new test data
-rw-r--r-- | tests/refs/list.c | 4 | ||||
-rw-r--r-- | tests/repo/iterator.c | 3 | ||||
-rw-r--r-- | tests/revwalk/basic.c | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/tests/refs/list.c b/tests/refs/list.c index de5c0fd3d..374943b05 100644 --- a/tests/refs/list.c +++ b/tests/refs/list.c @@ -36,7 +36,7 @@ void test_refs_list__all(void) /* We have exactly 12 refs in total if we include the packed ones: * there is a reference that exists both in the packfile and as * loose, but we only list it once */ - cl_assert_equal_i((int)ref_list.count, 14); + cl_assert_equal_i((int)ref_list.count, 15); git_strarray_free(&ref_list); } @@ -51,7 +51,7 @@ void test_refs_list__do_not_retrieve_references_which_name_end_with_a_lock_exten "144344043ba4d4a405da03de3844aa829ae8be0e\n"); cl_git_pass(git_reference_list(&ref_list, g_repo)); - cl_assert_equal_i((int)ref_list.count, 14); + cl_assert_equal_i((int)ref_list.count, 15); git_strarray_free(&ref_list); } diff --git a/tests/repo/iterator.c b/tests/repo/iterator.c index a1aa4b2c7..26e8954fe 100644 --- a/tests/repo/iterator.c +++ b/tests/repo/iterator.c @@ -906,6 +906,7 @@ void test_repo_iterator__fs2(void) static const char *expect_base[] = { "heads/br2", "heads/dir", + "heads/ident", "heads/long-file-name", "heads/master", "heads/packed-test", @@ -923,7 +924,7 @@ void test_repo_iterator__fs2(void) cl_git_pass(git_iterator_for_filesystem( &i, "testrepo/.git/refs", 0, NULL, NULL)); - expect_iterator_items(i, 12, expect_base, 12, expect_base); + expect_iterator_items(i, 13, expect_base, 13, expect_base); git_iterator_free(i); } diff --git a/tests/revwalk/basic.c b/tests/revwalk/basic.c index ff05fa249..4ae952775 100644 --- a/tests/revwalk/basic.c +++ b/tests/revwalk/basic.c @@ -177,7 +177,7 @@ void test_revwalk_basic__glob_heads_with_invalid(void) /* walking */; /* git log --branches --oneline | wc -l => 16 */ - cl_assert_equal_i(17, i); + cl_assert_equal_i(18, i); } void test_revwalk_basic__push_head(void) |