]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: Alter expected line endings in testsuite
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Mon, 7 Apr 2025 16:55:23 +0000 (19:55 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Thu, 7 Aug 2025 17:20:01 +0000 (20:20 +0300)
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

index a080d70ac4e0bc5eabcae43480d9ab75e61c853b..0d8c64e3312d9bbfafde477ae216a47e63e22dbe 100644 (file)
@@ -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])