diff options
author | Vicent Marti <tanoku@gmail.com> | 2012-11-17 19:54:47 -0800 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2012-11-17 19:55:06 -0800 |
commit | 9b965c01e06e695e8ee51a1cc080cc1509cd4962 (patch) | |
tree | 6868aeb349ce620bee6bccaa0b6069b223fd6a13 /tests-clar/object/blob | |
parent | 0066955d9752cab8f8533c0dddfc95d08ad13e33 (diff) | |
download | libgit2-more-api-tweaks.tar.gz |
More external API cleanupmore-api-tweaks
Diffstat (limited to 'tests-clar/object/blob')
-rw-r--r-- | tests-clar/object/blob/filter.c | 4 | ||||
-rw-r--r-- | tests-clar/object/blob/write.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/object/blob/filter.c b/tests-clar/object/blob/filter.c index 0b87b2b46..4b058049a 100644 --- a/tests-clar/object/blob/filter.c +++ b/tests-clar/object/blob/filter.c @@ -14,7 +14,7 @@ static const char *g_raw[NUM_TEST_OBJECTS] = { "foo\nbar\rboth\r\nreversed\n\ragain\nproblems\r", "123\n\000\001\002\003\004abc\255\254\253\r\n" }; -static int g_len[NUM_TEST_OBJECTS] = { -1, -1, -1, -1, -1, 17 }; +static git_off_t g_len[NUM_TEST_OBJECTS] = { -1, -1, -1, -1, -1, 17 }; static git_text_stats g_stats[NUM_TEST_OBJECTS] = { { 0, 0, 0, 0, 0, 0 }, { 0, 0, 2, 0, 6, 0 }, @@ -65,7 +65,7 @@ void test_object_blob_filter__unfiltered(void) for (i = 0; i < NUM_TEST_OBJECTS; i++) { cl_git_pass(git_blob_lookup(&blob, g_repo, &g_oids[i])); - cl_assert((size_t)g_len[i] == git_blob_rawsize(blob)); + cl_assert(g_len[i] == git_blob_rawsize(blob)); cl_assert(memcmp(git_blob_rawcontent(blob), g_raw[i], g_len[i]) == 0); git_blob_free(blob); } diff --git a/tests-clar/object/blob/write.c b/tests-clar/object/blob/write.c index 6d4cbab4f..203bc67c1 100644 --- a/tests-clar/object/blob/write.c +++ b/tests-clar/object/blob/write.c @@ -33,7 +33,7 @@ void test_object_blob_write__can_create_a_blob_in_a_standard_repo_from_a_file_lo { repo = cl_git_sandbox_init(WORKDIR); - assert_blob_creation(WORKDIR "/test.txt", "test.txt", &git_blob_create_fromfile); + assert_blob_creation(WORKDIR "/test.txt", "test.txt", &git_blob_create_fromworkdir); } void test_object_blob_write__can_create_a_blob_in_a_standard_repo_from_a_absolute_filepath_pointing_outside_of_the_working_directory(void) |