in reply to Re^2: Unit test of script fails unless Test::Warnings is used?!
in thread Unit test of script fails unless Test::Warnings is used?!

Because Test::Warnings runs a test of its own, so the harness is satisfied. Output of your test script using Test::Warnings under --verbose:

$ prove -lrv 11107390.t 11107390.t .. ok 1 - no (unexpected) warnings (via done_testing) 1..1 ok All tests successful.

Hope this helps!


The way forward always starts with a minimal test.