summaryrefslogtreecommitdiff
path: root/tests/online
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-08-18 15:18:59 +0200
committerVicent Marti <vicent@github.com>2014-08-18 15:18:59 +0200
commitd28b2b7a5ff608ce8f3da0e0b6a4c75afcf1e82c (patch)
treeb060de361e87763abd373bc535fcb09778c28e29 /tests/online
parent43ebca8d7baa420a35ac1a8b23258066a0e5b223 (diff)
parent4ca0b566ca811550b4db31045e580b4970e5b8e3 (diff)
downloadlibgit2-d28b2b7a5ff608ce8f3da0e0b6a4c75afcf1e82c.tar.gz
Merge pull request #2528 from libgit2/vmg/tostr_s
Export `git_oid_tostr_s` instead of `_allocfmt`
Diffstat (limited to 'tests/online')
-rw-r--r--tests/online/push_util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/online/push_util.c b/tests/online/push_util.c
index 038c144db..68e71eacc 100644
--- a/tests/online/push_util.c
+++ b/tests/online/push_util.c
@@ -110,9 +110,8 @@ failed:
git_buf_puts(&msg, "Expected and actual refs differ:\nEXPECTED:\n");
for(i = 0; i < expected_refs_len; i++) {
- cl_assert(oid_str = git_oid_allocfmt(expected_refs[i].oid));
+ oid_str = git_oid_tostr_s(expected_refs[i].oid);
cl_git_pass(git_buf_printf(&msg, "%s = %s\n", expected_refs[i].name, oid_str));
- git__free(oid_str);
}
git_buf_puts(&msg, "\nACTUAL:\n");
@@ -121,9 +120,8 @@ failed:
if (master_present && !strcmp(actual->name, "refs/heads/master"))
continue;
- cl_assert(oid_str = git_oid_allocfmt(&actual->oid));
+ oid_str = git_oid_tostr_s(&actual->oid);
cl_git_pass(git_buf_printf(&msg, "%s = %s\n", actual->name, oid_str));
- git__free(oid_str);
}
cl_fail(git_buf_cstr(&msg));