Subject: | Make test fails because of screwup with |
[root@localhost Net-FTPSSL-0.04]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic......You tried to run a test without a plan at t/00-basic.t
line 6.
BEGIN failed--compilation aborted at t/00-basic.t line 6.
# Looks like your test died before it could output anything.
t/00-basic......dubious
The problem is this: 00basic.t
#!/usr/bin/perl -w
use Test::More;
plan tests => 1;
BEGIN { use_ok('Net::FTPSSL') }
ok(1, 'Net::FTPSSL loaded.');
diag( "\nNet::FTPSSL loaded properly." );
The BEGIN will fire before the "plan", running a test before you plan
any. You need to change:
use Test::More;
plan tests => 1;
To
use Test::More tests => 1;
...well, actually, in this example you're running two tests so you
should change it to
use Test::More tests => 2;
(All this on perl 5.8.8 on Fedora 7)