mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 22:25:04 +00:00
tests: fix indentation in repo/message.c
This commit is contained in:
parent
f7b060188a
commit
c9459abb61
@ -31,16 +31,16 @@ void test_repo_message__message(void)
|
||||
ssize_t len;
|
||||
|
||||
cl_git_pass(git_buf_joinpath(&_path, git_repository_path(_repo), "MERGE_MSG"));
|
||||
cl_git_mkfile(git_buf_cstr(&_path), expected);
|
||||
cl_git_mkfile(git_buf_cstr(&_path), expected);
|
||||
|
||||
len = git_repository_message(NULL, 0, _repo);
|
||||
cl_assert(len > 0);
|
||||
_actual = git__malloc(len + 1);
|
||||
cl_assert(_actual != NULL);
|
||||
len = git_repository_message(NULL, 0, _repo);
|
||||
cl_assert(len > 0);
|
||||
_actual = git__malloc(len + 1);
|
||||
cl_assert(_actual != NULL);
|
||||
|
||||
cl_assert(git_repository_message(_actual, len, _repo) > 0);
|
||||
_actual[len] = '\0';
|
||||
cl_assert_equal_s(expected, _actual);
|
||||
cl_assert(git_repository_message(_actual, len, _repo) > 0);
|
||||
_actual[len] = '\0';
|
||||
cl_assert_equal_s(expected, _actual);
|
||||
|
||||
cl_git_pass(p_unlink(git_buf_cstr(&_path)));
|
||||
cl_assert_equal_i(GIT_ENOTFOUND, git_repository_message(NULL, 0, _repo));
|
||||
|
Loading…
Reference in New Issue
Block a user