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

27 lines
960 B
Diff
Raw Normal View History

diff -up Package-Stash-0.32/t/author-leaks-debug.t.orig Package-Stash-0.32/t/author-leaks-debug.t
--- Package-Stash-0.32/t/author-leaks-debug.t.orig 2011-09-06 12:43:32.000000000 +0100
+++ Package-Stash-0.32/t/author-leaks-debug.t 2011-09-06 12:45:29.866712947 +0100
@@ -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 => 29;
diff -up Package-Stash-0.32/t/author-leaks.t.orig Package-Stash-0.32/t/author-leaks.t
--- Package-Stash-0.32/t/author-leaks.t.orig 2011-09-06 12:43:32.000000000 +0100
+++ Package-Stash-0.32/t/author-leaks.t 2011-09-06 12:45:58.177640368 +0100
@@ -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 => 29;