Subject: | Throws warnings when run outside of a harness |
When run outside of a harness, Test::Builder::Tester stores away the
HARNESS_ACTIVE environment variable as undef, and then tries to set it back, causing a warning.
Test::Builder::Tester::test_test(/usr/local/share/perl/5.8.4/Test/Builder/Tester.pm:353):
353: $ENV{HARNESS_ACTIVE} = $original_harness_env;
DB<3>
Use of uninitialized value in scalar assignment at /usr/local/share/perl/5.8.4/Test/Builder/Tester.pm line 353.
Test::Builder::Tester::test_test() called at 02_main.t line 31
To resolve check that HARNESS_ACTIVE actually exists to start with, and if not make sure you delete $ENV{HARNESS_ACTIVE} rather than setting it to undef.