this allows me to test coverage of code only tested by threading,
since Devel::Cover and ithreads don't (or didn't) get along well.
my @tests;
my $verbose;
+my $nodc;
GetOptions("t|test=s" => \@tests,
+ "n" => \$nodc,
"v" => \$verbose)
or die;
{
local $ENV{DEVEL_COVER_OPTIONS} = "-db," . getcwd() . "/cover_db,-coverage,statement,branch,condition,subroutine";
- my $makecmd = "$make test TEST_VERBOSE=1 HARNESS_PERL_SWITCHES=-MDevel::Cover";
+ my $makecmd = "$make test TEST_VERBOSE=1";
+ $makecmd .= " HARNESS_PERL_SWITCHES=-MDevel::Cover" unless $nodc;
if (@tests) {
$makecmd .= " TEST_FILES='@tests'";
}