perl-Package-Stash/Package-Stash-0.25-no-Test::LeakTrace.patch

27 lines
984 B
Diff
Raw Normal View History

diff -up Package-Stash-0.23/t/author-20-leaks.t.orig Package-Stash-0.23/t/author-20-leaks.t
--- Package-Stash-0.23/t/author-20-leaks.t.orig 2011-01-12 09:57:19.000000000 +0000
+++ Package-Stash-0.23/t/author-20-leaks.t 2011-01-12 09:58:40.139310210 +0000
@@ -12,7 +12,8 @@ use warnings;
use lib 't/lib';
use Test::More;
use Test::Fatal;
-use Test::LeakTrace;
+eval "use Test::LeakTrace";
+plan skip_all => "Test::LeakTrace required for this test" if $@;
plan tests => 25;
diff -up Package-Stash-0.23/t/author-21-leaks-debug.t.orig Package-Stash-0.23/t/author-21-leaks-debug.t
--- Package-Stash-0.23/t/author-21-leaks-debug.t.orig 2011-01-12 09:57:19.000000000 +0000
+++ Package-Stash-0.23/t/author-21-leaks-debug.t 2011-01-12 09:58:51.082622361 +0000
@@ -12,7 +12,8 @@ use warnings;
use lib 't/lib';
use Test::More;
use Test::Fatal;
-use Test::LeakTrace;
+eval "use Test::LeakTrace";
+plan skip_all => "Test::LeakTrace required for this test" if $@;
plan tests => 25;