one more leak test, just in case
Jesse Luehrs [Sun, 14 Nov 2010 03:39:26 +0000 (21:39 -0600)]
t/20-leaks.t

index 7d3f5eb..0f46df5 100644 (file)
@@ -153,4 +153,11 @@ use Symbol;
     } "get_symbol doesn't leak during glob expansion";
 }
 
+{
+    my $foo = Package::Stash->new('Foo');
+    no_leaks_ok {
+        eval { $foo->get_or_add_symbol('&blorg') };
+    } "doesn't leak on errors";
+}
+
 done_testing;