4 chdir '..' if -d '../pod' && -d '../t';
8 use Test::More tests => 3;
10 BEGIN { use_ok('diagnostics') }
15 'base'->import(qw(I::do::not::exist));
18 like( $@, qr/^Base class package "I::do::not::exist" is empty/);
20 # Test for %.0f patterns in perldiag, added in 5.11.0
22 open STDERR, ">", \my $warning
23 or die "Couldn't redirect STDERR to var: $!";
24 warn('gmtime(nan) too large');
25 like $warning, qr/\(W overflow\) You called/, '%0.f patterns';