From 2a528bc088f566ad3301963304da8942400f261b Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Tue, 11 Feb 2014 19:05:13 -0600 Subject: [PATCH] Fix filter test for CRLF->LF issues --- tests/filter/blob.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/filter/blob.c b/tests/filter/blob.c index 8dce6470a..48edb8405 100644 --- a/tests/filter/blob.c +++ b/tests/filter/blob.c @@ -41,7 +41,8 @@ void test_filter_blob__all_crlf(void) cl_git_pass(git_blob_filtered_content(&buf, blob, "file.lf", 1)); - cl_assert_equal_s(ALL_CRLF_TEXT_AS_LF, buf.ptr); + /* we never convert CRLF -> LF on platforms that have LF */ + cl_assert_equal_s(ALL_CRLF_TEXT_AS_CRLF, buf.ptr); git_buf_free(&buf); git_blob_free(blob);