From: Ileana Dumitrescu Date: Mon, 7 Apr 2025 16:55:23 +0000 (+0300) Subject: libtool: Alter expected line endings in testsuite X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0c329ac0e6bd8f1f6849bbbe465934b8c1f5ab6;p=thirdparty%2Flibtool.git libtool: Alter expected line endings in testsuite When comparing expected output in LT_AT_CHECK_EXECUTE, several tests fail with mismatched line endings. This patch should fix Windows environments that have CRLF text line endings disabled and only use the LF character for line endings. * tests/testsuite.at: Removed '\r' from awk's printf command. --- diff --git a/tests/testsuite.at b/tests/testsuite.at index a080d70ac..0d8c64e33 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -284,7 +284,9 @@ AT_CHECK([test -z "$leftovers"]) m4_define([LT_AT_HOST_DATA], [AT_DATA([$1], [$2]) case $host_os in mingw* | windows*) - awk '{printf ("%s\r\n", [$]0);}' < $1 > $1.t && mv -f $1.t $1 ;; + awk '{printf ("%s\r\n", [$]0);}' < $1 > $1.t && mv -f $1.t $1;; +cygwin*) + awk '{printf ("%s\n", [$]0);}' < $1 > $1.t && mv -f $1.t $1;; esac])