Subject: | Test suite now requires Test::More 0.96 or later |
The use of subtests t/delete_empty_groups.t means that Test::More version 0.96 or later is required, and this should be reflected in the module metadata, Makefile.PL and the test itself.
Using an older version fails like this:
$ make test
/usr/bin/perl "-Iinc" "-MModule::Install::ExtraTests" "-e" "Module::Install::ExtraTests::__harness('Test::Harness', 0, '', 'xt/release', '', 0, 'blib/lib', 'blib/arch')" t/*.t
"my" variable $changes masks earlier declaration in same scope at t/delete_empty_groups.t line 34.
syntax error at t/delete_empty_groups.t line 8, near "subtest basic"
syntax error at t/delete_empty_groups.t line 29, near "}"
syntax error at t/delete_empty_groups.t line 52, near "}"
Execution of t/delete_empty_groups.t aborted due to compilation errors.
# Looks like your test exited with 255 before it could output anything.
t/delete_empty_groups.t ...............
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/2 subtests
t/dist-zilla-changes.t ................ ok
t/read_basic.t ........................ ok
t/read_different-indentation.t ........ ok
t/read_dist-zilla.t ................... ok
t/read_group-brackets.t ............... ok
t/read_group.t ........................ ok
t/read_line-continuation.t ............ ok
t/read_multiple_releases.t ............ ok
t/read_no-leading-space-for-change.t .. ok
t/read_preamble.t ..................... ok
t/read_space-before-date.t ............ ok
t/read_timestamp.t .................... ok
t/self.t .............................. ok
t/serialize.t ......................... ok
t/sort_groups.t ....................... ok
Test Summary Report
-------------------
t/delete_empty_groups.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 2 tests but ran 0.
Files=16, Tests=182, 0 wallclock secs ( 0.07 usr 0.02 sys + 0.42 cusr 0.07 csys = 0.58 CPU)
Result: FAIL
Failed 1/16 test programs. 0/182 subtests failed.
make: *** [test_dynamic] Error 255