in reply to CPAN newbie troubles
It's failing for three reasons.
If you had had more tests in the file, those would fail too by virtue of your early bail out.
To skip all tests, you want the skip_all functionality.
use Test::More; BEGIN { if ($^O =~ /^(?:MSWin|VMS|dos|MacOS|os2|epoc|cygwin)/i) { plan skip_all => "OS unsupported. It may or may not work, but yo +u won't know since the tests are being skipped. Use at your own risk" +; } else { plan tests => 1; } use_ok('Term::Menu::Hierarchical'); }
Or maybe you're really trying to do something other than confuse would-be users.
Are you trying to prevent the installation of the module on those platforms? You'll need to muck around with Makefile.PL.
if ($^O =~ /^(?:MSWin|VMS|dos|MacOS|os2|epoc|cygwin)) { die "OS unsupported\n"; }
Are you trying to suppress the emails? Setup a mail filter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CPAN newbie troubles
by oko1 (Deacon) on Jan 04, 2011 at 23:39 UTC | |
by ikegami (Patriarch) on Jan 05, 2011 at 00:06 UTC | |
by syphilis (Archbishop) on Jan 05, 2011 at 00:34 UTC | |
by ikegami (Patriarch) on Jan 05, 2011 at 01:04 UTC | |
by oko1 (Deacon) on Jan 05, 2011 at 00:39 UTC | |
by ikegami (Patriarch) on Jan 05, 2011 at 00:57 UTC | |
by oko1 (Deacon) on Jan 05, 2011 at 01:22 UTC | |
|