Subject: | Subroutine bar redefined |
t/basic.t test fails if executed with "perl -w":
$ perl5.26.1 -w t/basic.t
...
not ok 5 - Got unexpected warning
# Failed test 'Got unexpected warning'
# at t/basic.t line 5.
# Subroutine bar redefined at (eval 12) line 2.
...
See also http://matrix.cpantesters.org/?dist=experimental%200.017;perl=5.18.4;reports=1 for similar fail reports at CPAN Testers.
Probably the test script should have a "use warnings" so warnings are consistently generated. Currently it seems that -w is sometimes set when "make test" runs (seen on two of my smokers, both with perl 5.18.4).
And of course, the 2nd "sub bar" needs to be renamed.