From 0d21340a5a1e26bba46522ba4666033564f8e930 Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Fri, 18 Apr 2014 09:00:46 -0700 Subject: [PATCH] testsuite.at: Workaround for carriage returns on windows. In unit tests, we compare text written in logs or stdout/stderr to figure out the success or failure of tests. In Windows, since new line is represented by CR+LF, autoconf tests run in MinGW environment fail. Asking diff to ignore trailing carriage returns is one way to solve the problem Suggested-by: Ben Pfaff Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- tests/testsuite.at | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testsuite.at b/tests/testsuite.at index 85c50d137..264a15fd6 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -47,6 +47,10 @@ if test "$IS_WIN32" = "yes"; then command pwd -W "$@" } + diff () { + command diff --strip-trailing-cr "$@" + } + kill () { case "$1" in -0) -- 2.43.0