diff options
author | Gunter Knauf <gk@gknw.de> | 2009-05-21 14:14:57 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2009-05-21 14:14:57 +0000 |
commit | 5e2b5edde5e88e1f451f4a773f1ecf09d6bc0df0 (patch) | |
tree | 0a47969f1872791e25312887d039352ef429089c /tests | |
parent | b8b652165931764d6d7c733d1452f731da478e63 (diff) |
strip \r only on non-win32 platforms (wine on Linux).
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/testcurl.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testcurl.pl b/tests/testcurl.pl index 78d3abded..d61807f18 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -664,7 +664,8 @@ if (!$crosscompile || (($extvercmd ne '') && (-x $extvercmd))) { my $cmd = ($extvercmd ne '' ? $extvercmd.' ' : '')."./src/curl${binext} --version|"; open(F, $cmd); while(<F>) { - s/\r//; + # strip CR from output on non-win32 platforms (wine on Linux) + s/\r// if ($^O ne 'MSWin32'); print; } close(F); |