of this given data before comparing with the one actually sent by the client
The `<strip>` and `<strippart>` rules are applied before comparisons are made.
-### `<stderr [mode="text"] [nonewline="yes"]>`
+### `<stderr [mode="text"] [nonewline="yes"] [crlf="yes"]>`
This verifies that this data was passed to stderr.
Use the mode="text" attribute if the output is in text mode on platforms that
have a text/binary difference.
+`crlf=yes` forces the newlines to become CRLF even if not written so in the
+test.
+
If `nonewline` is set, we will cut off the trailing newline of this given data
before comparing with the one actually received by the client
chomp($validstderr[-1]);
}
+ if($hash{'crlf'}) {
+ subnewlines(0, \$_) for @validstderr;
+ }
+
$res = compare($runnerid, $testnum, $testname, "stderr", \@actual, \@validstderr);
if($res) {
return -1;