Subject: | using Carp::Always makes Test::NoWarnings report no warnings even if there are warnings |
Date: | Thu, 25 Aug 2011 16:53:18 -0500 |
To: | bug-Test-NoWarnings [...] rt.cpan.org |
From: | Michael Reddick <michael.reddick [...] gmail.com> |
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More tests => 2;
use Test::NoWarnings;
use Carp::Always;
ok 1;
warn 'asdf';
t/tmp.t ..
1..2
ok 1
ok 2 - no warnings
asdf at t/tmp.t line 10
ok
All tests successful.
Files=1, Tests=2, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.04 cusr
0.00 csys = 0.08 CPU)
Result: PASS