This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Allow diag.t to pass tests for multi-line warnings.
authorCraig A. Berry <craigberry@mac.com>
Thu, 29 Dec 2011 22:57:24 +0000 (16:57 -0600)
committerCraig A. Berry <craigberry@mac.com>
Thu, 29 Dec 2011 22:57:24 +0000 (16:57 -0600)
commitb8d24c3d4a2679a2a0807d2893849a237e577689
treed188ce60b40127ab21470d62f99fa688d4cbfabb
parent7d9189d8cb23dc30b986d15850dce6adf8b74772
Allow diag.t to pass tests for multi-line warnings.

It's been sending the full warning text to t/test.pl's pass()
function.  If there are newlines in the the warning, t/TEST (though
not t/harness) will spew "Unexpected output at ..." messages and
fail the test.  In this context, the warning is just a message
printed by the test infrastructure, so we might as well use the
version of the warning that's already had newlines replaced with
spaces.
t/porting/diag.t