Subject: | t/06-layers.t fails if env var PERL5OPT set to -M5.010 |
I got a test failure in t/06-layers.t - tracked it down to the fact that my environment has PERL5OPT=-M5.010 to automatically enable 5.10+ features. Running without that env var, it passes.
Now, one could argue that "that's your environment's fault, then", and I wouldn't necessarily argue with that, but it would be *nice* if the tests could check the environment is as they expect it to be (or make it so) to avoid this.
[davidp@supernova:~/tmp/Test-Trap-v0.3.3]$ prove -Ilib t/06-layers.t
t/06-layers.t .. 1/163 # Looks like your test exited with 1 just after 101.
t/06-layers.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 62/163 subtests
Test Summary Report
-------------------
t/06-layers.t (Wstat: 256 Tests: 101 Failed: 0)
Non-zero exit status: 1
Parse errors: Bad plan. You planned 163 tests but ran 101.
Files=1, Tests=101, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.09 cusr 0.00 csys = 0.12 CPU)
Result: FAIL
[davidp@supernova:~/tmp/Test-Trap-v0.3.3]$ echo $PERL5OPT
-M5.010
[davidp@supernova:~/tmp/Test-Trap-v0.3.3]$ PERL5OPT= prove -Ilib t/06-layers.t
t/06-layers.t .. ok
All tests successful.
Files=1, Tests=163, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.09 cusr 0.00 csys = 0.12 CPU)
Result: PASS