summaryrefslogtreecommitdiffstats
path: root/t/warn.t
diff options
context:
space:
mode:
Diffstat (limited to 't/warn.t')
-rw-r--r--t/warn.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/warn.t b/t/warn.t
new file mode 100644
index 0000000..1058eb9
--- /dev/null
+++ b/t/warn.t
@@ -0,0 +1,16 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More;
+use lib 't/lib/warn';
+
+{
+ use_ok("Foo::Conflicts");
+
+ my $warning = '';
+ local $SIG{__WARN__} = sub { $warning .= $_[0] };
+ my $conflicts = Foo::Conflicts->calculate_conflicts;
+ is($warning, '', "we don't see warnings from loaded modules");
+}
+
+done_testing;