aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-06-03 14:06:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-06-03 14:06:03 +0000
commit29aafb9cea842321e7379685e33194a1b34bb0dc (patch)
treed14b3df7adeb4cfd8507219c76701f3ec15a0499 /tests/runtests.pl
parent40eb7d0d48a61865bff9f0d6e336ef9491515f0b (diff)
Andres Garcia's text mode fix for the 'data' part
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index b0b3e24e5..572e06c51 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -1366,6 +1366,14 @@ sub singletest {
if(!$replyattr{'nocheck'} && (@reply || $replyattr{'sendzero'})) {
# verify the received data
my @out = loadarray($CURLOUT);
+ my %hash = getpartattr("reply", "data");
+ # get the mode attribute
+ my $filemode=$hash{'mode'};
+ if(($filemode eq "text") && $has_textaware) {
+ # text mode when running on windows: fix line endings
+ map s/\r\n/\n/g, @out;
+ }
+
$res = compare("data", \@out, \@reply);
if ($res) {
return 1;