49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
|
diff -up Package-Stash-0.20/t/20-leaks.t.orig Package-Stash-0.20/t/20-leaks.t
|
||
|
--- Package-Stash-0.20/t/20-leaks.t.orig 2011-01-04 16:31:03.000000000 +0000
|
||
|
+++ Package-Stash-0.20/t/20-leaks.t 2011-01-04 16:32:31.507953903 +0000
|
||
|
@@ -4,8 +4,12 @@ use warnings;
|
||
|
use lib 't/lib';
|
||
|
use Test::More;
|
||
|
use Test::Fatal;
|
||
|
-use Test::Requires 'Test::LeakTrace';
|
||
|
-plan tests => 25;
|
||
|
+eval "use Test::LeakTrace";
|
||
|
+if ($@) {
|
||
|
+ plan skip_all => "Test::LeakTrace required for this test";
|
||
|
+} else {
|
||
|
+ plan tests => 25;
|
||
|
+}
|
||
|
|
||
|
use Package::Stash;
|
||
|
use Symbol;
|
||
|
diff -up Package-Stash-0.20/t/21-leaks-debug.t.orig Package-Stash-0.20/t/21-leaks-debug.t
|
||
|
--- Package-Stash-0.20/t/21-leaks-debug.t.orig 2011-01-04 16:31:03.000000000 +0000
|
||
|
+++ Package-Stash-0.20/t/21-leaks-debug.t 2011-01-04 16:32:53.018560833 +0000
|
||
|
@@ -4,8 +4,12 @@ use warnings;
|
||
|
use lib 't/lib';
|
||
|
use Test::More;
|
||
|
use Test::Fatal;
|
||
|
-use Test::Requires 'Test::LeakTrace';
|
||
|
-plan tests => 25;
|
||
|
+eval "use Test::LeakTrace";
|
||
|
+if ($@) {
|
||
|
+ plan skip_all => "Test::LeakTrace required for this test";
|
||
|
+} else {
|
||
|
+ plan tests => 25;
|
||
|
+}
|
||
|
|
||
|
BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE
|
||
|
|
||
|
diff -up Package-Stash-0.20/t/impl-selection/11-basic-xs.t.orig Package-Stash-0.20/t/impl-selection/11-basic-xs.t
|
||
|
--- Package-Stash-0.20/t/impl-selection/11-basic-xs.t.orig 2011-01-04 16:31:03.410468453 +0000
|
||
|
+++ Package-Stash-0.20/t/impl-selection/11-basic-xs.t 2011-01-04 16:31:03.413468538 +0000
|
||
|
@@ -3,7 +3,7 @@ use strict;
|
||
|
use warnings;
|
||
|
use Test::More tests => 124;
|
||
|
use Test::Fatal;
|
||
|
-use Test::Requires 'Package::Stash::XS';
|
||
|
+use Package::Stash::XS;
|
||
|
|
||
|
BEGIN { $Package::Stash::IMPLEMENTATION = 'XS' }
|
||
|
|