[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make 3.81 MinGW port and testsuite working with MSYS
From: |
Paul D. Smith |
Subject: |
Re: make 3.81 MinGW port and testsuite working with MSYS |
Date: |
Sat, 26 Feb 2005 17:07:55 -0500 |
What happens if you replace the test_driver.pl:run_command_with_output()
sub with the following; does it take care of line ending issues on those
systems where they currently appear? This replacement still passes 100%
on my Linux system.
#-------------------------
sub run_command_with_output
{
local ($filename) = shift;
local ($code) = (0);
local ($output);
local $/ = undef;
open(F, "> $filename") || return $?;
open(P, " 2>&1 @_ |") || return $?;
$output = <P>;
close(P) or $code = $?;
# Sanitize the output for different line endings
$output =~ s/\r\n/\n/sg;
print F $output;
close(F) or $code = $?;
print "run_command_with_output: \"@_\" returned $code.\n" if $debug;
return $code;
}
#-------------------------
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- Re: Building with case-insensitivity, (continued)
- Re: Building with case-insensitivity, Earnie Boyd, 2005/02/22
- Re: Building with case-insensitivity, J. Grant, 2005/02/22
- Re: Building with case-insensitivity, J. Grant, 2005/02/23
- make 3.81 MinGW port and testsuite working with MSYS, J. Grant, 2005/02/24
- Re: make 3.81 MinGW port and testsuite working with MSYS, Earnie Boyd, 2005/02/24
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/25
- Re: make 3.81 MinGW port and testsuite working with MSYS, J. Grant, 2005/02/26
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/25
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/25
- Re: make 3.81 MinGW port and testsuite working with MSYS, J. Grant, 2005/02/26
- Re: make 3.81 MinGW port and testsuite working with MSYS,
Paul D. Smith <=
- Re: make 3.81 MinGW port and testsuite working with MSYS, Alessandro Vesely, 2005/02/27
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/27
- Re: make 3.81 MinGW port and testsuite working with MSYS, Eli Zaretskii, 2005/02/27
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/27
- Re: make 3.81 MinGW port and testsuite working with MSYS, Eli Zaretskii, 2005/02/27
- Re: make 3.81 MinGW port and testsuite working with MSYS, Earnie Boyd, 2005/02/28
- Re: make 3.81 MinGW port and testsuite working with MSYS, Alessandro Vesely, 2005/02/28
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/28
- Re: make 3.81 MinGW port and testsuite working with MSYS, J. Grant, 2005/02/28
- Re: make 3.81 MinGW port and testsuite working with MSYS, J. Grant, 2005/02/28