aboutsummaryrefslogtreecommitdiff
path: root/tests/testcurl.pl
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2009-05-21 14:14:57 +0000
committerGunter Knauf <gk@gknw.de>2009-05-21 14:14:57 +0000
commit5e2b5edde5e88e1f451f4a773f1ecf09d6bc0df0 (patch)
tree0a47969f1872791e25312887d039352ef429089c /tests/testcurl.pl
parentb8b652165931764d6d7c733d1452f731da478e63 (diff)
strip \r only on non-win32 platforms (wine on Linux).
Diffstat (limited to 'tests/testcurl.pl')
-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);