Permalink
Browse files
Bootstrap after global options have ben set.
- Loading branch information...
Showing
with
3 additions
and
2 deletions.
-
+1
−0
Cover.xs
-
+2
−2
lib/Devel/Cover.pm
|
@@ -1064,6 +1064,7 @@ static void initialise(pTHX) |
|
|
MY_CXT.tid = tid++;
|
|
|
|
|
|
MY_CXT.replace_ops = SvTRUE(get_sv("Devel::Cover::Replace_ops", FALSE));
|
|
|
+ NDEB(D(L, "running with Replace_ops as %d\n", MY_CXT.replace_ops));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
@@ -255,8 +255,6 @@ $Replace_ops = 1; |
|
|
sub import
|
|
|
{
|
|
|
return if $Initialised;
|
|
|
- bootstrap Devel::Cover $VERSION;
|
|
|
-
|
|
|
|
|
|
my $class = shift;
|
|
|
|
|
@@ -289,6 +287,8 @@ sub import |
|
|
warn __PACKAGE__ . ": Unknown option $_ ignored\n";
|
|
|
}
|
|
|
|
|
|
+ bootstrap Devel::Cover $VERSION;
|
|
|
+
|
|
|
if (defined $Dir)
|
|
|
{
|
|
|
# Die tainting.
|
|
|
0 comments on commit
921e859