Subject: | prove fails to see some warnings |
Hi,
The attached example distro shows that 'prove' misses warnings that
'make test' (correctly) sees.
First run: prove -lv t/*.t
t/basic....
1..2
ok 1 - called warnfail successfully
ok 2 - no warnings
ok
All tests successful.
then after 'perl Makefile.PL': make test TEST_VERBOSE=1
t/basic....
1..2
ok 1 - called warnfail successfully
not ok 2 - no warnings
# Failed test 'no warnings'
# at /Library/Perl/5.8.8/Test/NoWarnings.pm line 45.
# There were 1 warning(s)
# Previous test 0 ''
# Use of uninitialized value in numeric gt (>) at blib/lib/
Warnfail.pm line 6.
# at blib/lib/Warnfail.pm line 6
# Warnfail::warnfail() called at t/basic.t line 11
#
# Looks like you failed 1 test of 2.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
Can you please look into this.
TIA +
Good luck,
-- Abe.
Subject: | Warnfail-0.01.tar.gz |
Message body not shown because it is not plain text.