diff options
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 10 |
1 files changed, 10 insertions, 0 deletions
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; |