Subject: | build testcover loses exising values in HARNESS_PERL_SWITCHES |
If I build testcover any existing value of the HARNESS_PERL_SWITCHES environment value is lost and replaced by "-MDevel::Cover". So for example if I am using HARNESS_PERL_SWITCHES to set -T this is lost if I build testcover, but not if I build test. The "-MDevel::Cover" should be appended to any existing HARNESS_PERL_SWITCHES value, or an alternative way of passing switched be provided.
The offending line seems to be
local $ENV{HARNESS_PERL_SWITCHES} = "-MDevel::Cover";
in sub ACTION_testcover in Module/Build/Base.pm
This line is not changed in the latest release (0.4205) so I presume the issue is still there though I have not actually tested it.