From 17ea2631cd081dff7380d0b960448d1414f64bd7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 20 May 2005 10:40:32 +0000 Subject: Add support for text mode on stdout tests as well, and add the mode=text to the docs. --- tests/runtests.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/runtests.pl') diff --git a/tests/runtests.pl b/tests/runtests.pl index 0ba5d8bc1..765c38c83 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -1326,6 +1326,16 @@ sub singletest { # verify redirected stdout my @actual = loadarray($STDOUT); + # get all attributes + my %hash = getpartattr("verify", "stdout"); + + # 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, @actual; + } + $res = compare("stdout", \@actual, \@validstdout); if($res) { return 1; -- cgit v1.2.3