| 1 | #our $VERSION = 0.042_000; # DEV NOTE: comment to avoid potential conflict w/ Dist::Zilla & friends | ||||||||||
| 2 | |||||||||||
| 3 | package MY; | ||||||||||
| 4 | 1 | ▶ | BEGIN { use English; } | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 0 | ▶ | sub pm_to_blib { | ||||||||
|
Subroutine
pm_to_blib: not called CC=3 SCAR=24.8
| |||||||||||
| 7 | 0 | my $self = shift; | |||||||||
| 8 | 0 | my $blib = $self->SUPER::pm_to_blib(@_); | |||||||||
| 9 | |||||||||||
| 10 | # un-read-only blib/lib for tests to pass, files are modified at runtime there | ||||||||||
| 11 | 0 | ▶ | if ( $OSNAME eq 'MSWin32' ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 0 | my ( $lastline, $start ) = qq{\t\$(NOECHO) \$(TOUCH) pm_to_blib\n}; | |||||||||
| 13 | 0 | ▶ | ( $start = index( $blib, $lastline ) ) == -1 | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | && die "Can't find replacement string for pm_to_blib target"; | ||||||||||
| 15 | 0 | substr( $blib, $start, 0, "\t" . 'attrib -R /S blib/lib/*' . "\n" ); | |||||||||
| 16 | } | ||||||||||
| 17 | 0 | return $blib; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | # disable PERL_DL_NONLAZY=1 to avoid C++ compile errors for GMP library (and possibly others) | ||||||||||
| 21 | 0 | ▶ | sub test_via_harness { | ||||||||
|
Subroutine
test_via_harness: not called CC=1 SCAR=6.9
| |||||||||||
| 22 | 0 | my $self = shift; | |||||||||
| 23 | 0 | my $command = $self->MM::test_via_harness(@_); | |||||||||
| 24 | 0 | $command =~ s/\bPERL_DL_NONLAZY=1\s+//gxms; | |||||||||
| 25 | 0 | return $command; | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 0 | ▶ | sub test_via_script { | ||||||||
|
Subroutine
test_via_script: not called CC=1 SCAR=6.9
| |||||||||||
| 29 | 0 | my $self = shift; | |||||||||
| 30 | 0 | my $command = $self->MM::test_via_script(@_); | |||||||||
| 31 | 0 | $command =~ s/\bPERL_DL_NONLAZY=1\s+//gxms; | |||||||||
| 32 | 0 | return $command; | |||||||||
| 33 | } | ||||||||||