3 # Test our simulation of pod2man
15 use ExtUtils::Command::MM;
17 use Test::More tests => 3;
19 # The argument to perm_rw was optional.
23 local $SIG{__WARN__} = sub {
24 $warnings .= join '', @_;
29 like $warnings, qr/^Option perm_rw requires an argument/;
33 # Simulate the failure of Pod::Man loading.
34 # pod2man() should react gracefully.
38 die "Simulated Pod::Man failure\n" if $_[1] eq 'Pod/Man.pm';
41 delete $INC{"Pod/Man.pm"};
44 local $SIG{__WARN__} = sub {
45 $warnings .= join '', @_;
50 Pod::Man is not available: Simulated Pod::Man failure
51 Man pages will not be generated during this install.