The test fails if I use all_pm_files_ok and all_pl_files_ok in the same
script. This alluded to in the POD ("calls the plan() function for you
... so you can't have already called plan."), but not specifically
mentioned.
It would be better if we could just call both files in the same script,
or failing that, the POD should advise against it.
Environment:
Test-Compile-0.23
Perl v5.14.2
Linux, 2.6.18-308.8.1.el5 #1 SMP, x86_64 GNU/Linux
Script:
use Test::Compile;
all_pm_files_ok();
all_pl_files_ok();
Output:
$ prove -v t/10-env/compile_fails.t
t/10-env/compile_fails.t ..
1..2
ok 1 - Compile test for lib/****/xxxxxx.pm
ok 2 - Compile test for lib/****/yyyyyy.pm
You tried to plan twice at /********/perl5/lib/perl5/Test/Compile.pm
line 126.
# Looks like your test exited with 255 just after 2.
Dubious, test returned 255 (wstat 65280, 0xff00)
All 2 subtests passed
Test Summary Report
-------------------
t/10-env/compile_fails.t (Wstat: 65280 Tests: 2 Failed: 0)
Non-zero exit status: 255
Files=1, Tests=2, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.44 cusr
0.02 csys = 0.49 CPU)
Result: FAIL