6 use lib 't/lib', 'lib';
8 use Test::More tests => 4;
13 $SIG{__WARN__} = sub { 0 };
15 eval { require Foo; };
16 ok(!$@, '... loaded Foo successfully') || diag $@;
18 delete $INC{'Foo.pm'};
20 eval { require Foo; };
21 ok(!$@, '... re-loaded Foo successfully') || diag $@;
23 eval { require Bar; };
24 ok(!$@, '... loaded Bar successfully') || diag $@;
26 delete $INC{'Bar.pm'};
28 eval { require Bar; };
29 ok(!$@, '... re-loaded Bar successfully') || diag $@;