summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-12 15:37:49 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-12 15:37:49 -0400
commit415f27aaf8bbf75d2831a040f4b8f17ce54cb62c (patch)
tree8202be983ddfb4d458038155cf1d4c2ecc4bca71
parent4cd517051481919ef9783f752491d9d4a553d0fe (diff)
downloadpackage-stash-xs-415f27aaf8bbf75d2831a040f4b8f17ce54cb62c.tar.gz
package-stash-xs-415f27aaf8bbf75d2831a040f4b8f17ce54cb62c.zip
ensure that RT80497 doesn't come back
-rw-r--r--t/warnings.t21
1 files changed, 21 insertions, 0 deletions
diff --git a/t/warnings.t b/t/warnings.t
new file mode 100644
index 0000000..2dd5929
--- /dev/null
+++ b/t/warnings.t
@@ -0,0 +1,21 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+
+use Package::Stash;
+
+my $warnings;
+BEGIN {
+ $warnings = '';
+ $SIG{__WARN__} = sub { $warnings .= $_[0] };
+}
+
+BEGIN {
+ my $stash = Package::Stash->new('Foo');
+ $stash->get_or_add_symbol('$bar');
+}
+
+is($warnings, '');
+
+done_testing;