From: Torsten Bögershausen Date: Fri, 17 Apr 2015 15:44:05 +0000 (+0200) Subject: t0027: support NATIVE_CRLF platforms X-Git-Tag: v2.5.0-rc0~135^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d6d6673e66deb6c6263dbe3d6668748c4f51c9a6?ds=inline;hp=d6d6673e66deb6c6263dbe3d6668748c4f51c9a6 t0027: support NATIVE_CRLF platforms t0027 expects the native end-of-lines to be a single line feed character. On Windows, however, we set it to a carriage return character followed by a line feed character. Thus, we have to modify t0027 to expect different warnings depending on the end-of-line markers. Adjust the check of the warnings and use these macros: WILC: Warn if LF becomes CRLF WICL: Warn if CRLF becomes LF WAMIX: Mixed line endings: either CRLF->LF or LF->CRLF Improve the information given by check_warning(). Use test_cmp to show which warning is missing (or shouldn't be there). Signed-off-by: Johannes Schindelin Signed-off-by: Torsten Bögershausen Signed-off-by: Junio C Hamano ---