From ca61f85261025fa63153816973683c772f0c1baa Mon Sep 17 00:00:00 2001 From: Ileana Dumitrescu Date: Mon, 7 Apr 2025 19:55:23 +0300 Subject: [PATCH] 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 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]) -- 2.47.3