branch: development commit e0c329ac0e6bd8f1f6849bbbe465934b8c1f5ab6 Author: Ileana Dumitrescu <ileanadumitresc...@gmail.com> AuthorDate: Mon Apr 7 19:55:23 2025 +0300
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. --- tests/testsuite.at | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testsuite.at b/tests/testsuite.at index a080d70a..0d8c64e3 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])