off the trailing newline of this given data before comparing with the one
actually sent by the client
</protocol>
-<stdout>
+<stdout [mode=text]>
This verfies that this data was passed to stdout.
+
+Use the "mode=text" attribute if the output is in text mode on platforms that
+have a text/binary difference.
</stdout>
-<file name="log/filename">
-the file's contents must be identical to this
+<file name="log/filename" [mode=text]>
+The file's contents must be identical to this after the test is complete.
+
+Use the "mode=text" attribute if the output is in text mode on platforms that
+have a text/binary difference.
</file>
<stripfile>
One perl op per line that operates on the file before being compared. This is
# 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;