summaryrefslogtreecommitdiffstats
path: root/t/dynamic2.t
blob: f1fd0933b5179807791c6b376408d92bcc5c256b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use lib 't/dynamic2';

my $warnings;
local $SIG{__WARN__} = sub { $warnings .= $_[0] };
use_ok('Foo');
is($warnings, "Circular require detected:\n  Bar.pm\n  Baz.pm\n  Bar.pm\n", "correct warnings");

done_testing;