X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F01_basic.t;h=5a6bdcf5eca4be2e5eb20f7a1a4e9acbdb7b62c6;hb=9aaf36461a79c118c35f3bf546933fefbd9bfd35;hp=85842479354f5712b07d3d97d0fca336e23afede;hpb=844f240882884d54202db803d8521f6d8652eabf;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/t/01_basic.t b/t/01_basic.t index 8584247..5a6bdcf 100644 --- a/t/01_basic.t +++ b/t/01_basic.t @@ -1,9 +1,17 @@ use strict; use warnings; -# we need to run a test in GD and this fails -# use Test::More tests => 3; -# use ok 'Devel::GlobalDestruction'; +BEGIN { + if ($ENV{DEVEL_GLOBALDESTRUCTION_PP_TEST}) { + require DynaLoader; + no warnings 'redefine'; + my $orig = \&DynaLoader::bootstrap; + *DynaLoader::bootstrap = sub { + die 'no XS' if $_[0] eq 'Devel::GlobalDestruction'; + goto $orig; + }; + } +} BEGIN { package Test::Scope::Guard;