aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/testcurl.pl3
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);