6 use lib 't/lib', 'lib';
8 use Test::More tests => 5;
15 $SIG{__WARN__} = sub { 0 };
17 eval { require Foo; };
18 ok(!$@, '... loaded Foo successfully') || diag $@;
20 delete $INC{'Foo.pm'};
22 eval { require Foo; };
23 ok(!$@, '... re-loaded Foo successfully') || diag $@;
25 eval { require Bar; };
26 ok(!$@, '... loaded Bar successfully') || diag $@;
28 delete $INC{'Bar.pm'};
30 eval { require Bar; };
31 ok(!$@, '... re-loaded Bar successfully') || diag $@;