summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/t00-core.c4
-rw-r--r--tests/t06-index.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/t00-core.c b/tests/t00-core.c
index 3c1b6219a..1f6c06a95 100644
--- a/tests/t00-core.c
+++ b/tests/t00-core.c
@@ -64,7 +64,7 @@ END_TEST
BEGIN_TEST(vector0, "initial size of 1 would cause writing past array bounds")
git_vector x;
int i;
- git_vector_init(&x, 1, NULL, NULL);
+ git_vector_init(&x, 1, NULL);
for (i = 0; i < 10; ++i) {
git_vector_insert(&x, (void*) 0xabc);
}
@@ -74,7 +74,7 @@ END_TEST
BEGIN_TEST(vector1, "don't read past array bounds on remove()")
git_vector x;
// make initial capacity exact for our insertions.
- git_vector_init(&x, 3, NULL, NULL);
+ git_vector_init(&x, 3, NULL);
git_vector_insert(&x, (void*) 0xabc);
git_vector_insert(&x, (void*) 0xdef);
git_vector_insert(&x, (void*) 0x123);
diff --git a/tests/t06-index.c b/tests/t06-index.c
index 0c748cc8d..19b4da5c2 100644
--- a/tests/t06-index.c
+++ b/tests/t06-index.c
@@ -55,7 +55,7 @@ BEGIN_TEST(read0, "load an empty index")
must_be_true(index->on_disk == 0);
must_be_true(git_index_entrycount(index) == 0);
- must_be_true(index->sorted);
+ must_be_true(index->entries.sorted);
git_index_free(index);
END_TEST
@@ -72,7 +72,7 @@ BEGIN_TEST(read1, "load a standard index (default test index)")
must_be_true(index->on_disk);
must_be_true(git_index_entrycount(index) == TEST_INDEX_ENTRY_COUNT);
- must_be_true(index->sorted);
+ must_be_true(index->entries.sorted);
entries = (git_index_entry **)index->entries.contents;
@@ -97,7 +97,7 @@ BEGIN_TEST(read2, "load a standard index (git.git index)")
must_be_true(index->on_disk);
must_be_true(git_index_entrycount(index) == TEST_INDEX2_ENTRY_COUNT);
- must_be_true(index->sorted);
+ must_be_true(index->entries.sorted);
must_be_true(index->tree != NULL);
git_index_free(index);
@@ -168,7 +168,7 @@ BEGIN_TEST(sort1, "sort the entires in an empty index")
must_pass(git_index_open_bare(&index, "fake-index"));
/* FIXME: this test is slightly dumb */
- must_be_true(index->sorted);
+ must_be_true(index->entries.sorted);
git_index_free(index);
END_TEST