summaryrefslogtreecommitdiffstats
path: root/xt/author/leaks.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-01-03 20:07:17 -0600
committerJesse Luehrs <doy@tozt.net>2013-01-03 20:07:17 -0600
commitd259e270103f4add38933c54a77e01c3a7c7d832 (patch)
tree7949b65abae0b6b02032ae4f43e19e255ac9acbd /xt/author/leaks.t
parent777923fe6d993cd91dfc24207b845251b5e259d9 (diff)
downloadpackage-stash-xs-d259e270103f4add38933c54a77e01c3a7c7d832.tar.gz
package-stash-xs-d259e270103f4add38933c54a77e01c3a7c7d832.zip
sync tests
Diffstat (limited to 'xt/author/leaks.t')
-rw-r--r--xt/author/leaks.t12
1 files changed, 2 insertions, 10 deletions
diff --git a/xt/author/leaks.t b/xt/author/leaks.t
index 767b4f1..18ec601 100644
--- a/xt/author/leaks.t
+++ b/xt/author/leaks.t
@@ -71,13 +71,9 @@ use Symbol;
no_leaks_ok {
$foo->add_symbol('&code_init' => sub { "foo" });
} "add_symbol code doesn't leak";
- { local $TODO = $Package::Stash::IMPLEMENTATION eq 'PP'
- ? "the pure perl implementation leaks here somehow"
- : undef;
no_leaks_ok {
$foo->add_symbol('io_init' => Symbol::geniosym);
} "add_symbol io doesn't leak";
- }
is(exception {
is(Foo->code_init, 'foo', "sub installed correctly")
}, undef, "code_init exists");
@@ -96,7 +92,7 @@ use Symbol;
{
my $foo = Package::Stash->new('Foo');
- $foo->add_symbol("${_}glob") for ('$', '@', '%', '&', '');
+ $foo->add_symbol("${_}glob") for ('$', '@', '%', '');
no_leaks_ok {
$foo->remove_glob('glob');
} "remove_glob doesn't leak";
@@ -189,13 +185,9 @@ use Symbol;
}
{
- local $TODO = ($Package::Stash::IMPLEMENTATION eq 'PP'
- && $Carp::VERSION ge '1.17')
- ? "Carp is leaky on 5.12.2 apparently?"
- : undef;
my $foo = Package::Stash->new('Foo');
no_leaks_ok {
- eval { $foo->get_or_add_symbol('&blorg') };
+ eval { $foo->add_symbol('&blorg') };
} "doesn't leak on errors";
}