mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-20 15:48:26 +00:00
filter test: pass base type
This commit is contained in:
parent
d202bb7d3b
commit
d88abb8949
@ -91,9 +91,9 @@ void test_filter_file__apply_stream(void)
|
|||||||
|
|
||||||
cl_git_pass(git_filter_list_push(fl, crlf, NULL));
|
cl_git_pass(git_filter_list_push(fl, crlf, NULL));
|
||||||
|
|
||||||
cl_git_pass(git_filter_list_stream_file(fl, g_repo, "all-crlf", (git_writestream *)&write_target));
|
cl_git_pass(git_filter_list_stream_file(fl, g_repo, "all-crlf", &write_target.base));
|
||||||
cl_assert_equal_s("crlf\ncrlf\ncrlf\ncrlf\n", write_target.buf.ptr);
|
cl_assert_equal_s("crlf\ncrlf\ncrlf\ncrlf\n", write_target.buf.ptr);
|
||||||
|
|
||||||
git_filter_list_free(fl);
|
git_filter_list_free(fl);
|
||||||
write_target.base.free((struct git_writestream *)&write_target);
|
write_target.base.free(&write_target.base);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user