This adds a test so that both =item lines of an adjacent pair get
tested.
chdir '..' if -d '../pod' && -d '../t';
@INC = 'lib';
require './t/test.pl';
- plan(28);
+ plan(29);
}
BEGIN {
warn 'Deep recursion on anonymous subroutine';
like $warning, qr/W recursion/,
'Message sharing its description with the following message';
+seek STDERR, 0,0;
+$warning = '';
+warn 'Deep recursion on subroutine "foo"';
+like $warning, qr/W recursion/,
+ 'Message sharing its description with the preceding message';
# Periods at end of entries in perldiag.pod get matched correctly
seek STDERR, 0,0;