The test file below is pared down from Module::Build. The warning from C<require> comes up in several tests, not always causing test failures. The same warning appears if you run MakeMaker as shown in the Devel::Cover docs--it's not specific to Module::Build.


[EMAIL PROTECTED]:~/projects$ module-starter --eumm --mb --module Foo Created starter directories and files

[EMAIL PROTECTED]:~/projects$ cd Foo

[EMAIL PROTECTED]:~/projects/Foo$ rm MANIFEST t/*

[EMAIL PROTECTED]:~/projects/Foo$ cat > t/basic.t
use Test::More tests => 1;
use File::Spec;
require File::Spec->catfile('t', 'common.pl');
ok(1);

[EMAIL PROTECTED]:~/projects/Foo$ cat > t/common.pl
1;

[EMAIL PROTECTED]:~/projects/Foo$ perl Build.PL
Creating new 'Build' script for 'Foo' version '0.01'

[EMAIL PROTECTED]:~/projects/Foo$ perl Build test
lib/Foo.pm -> blib/lib/Foo.pm
t/basic....ok
All tests successful.
Files=1, Tests=1,  0 wallclock secs ( 0.23 cusr +  0.04 csys =  0.27 CPU)

[EMAIL PROTECTED]:~/projects/Foo$ perl Build testcover
t/basic....Use of uninitialized value in require at t/basic.t line 3.
Null filename used at t/basic.t line 3.
# Looks like your test died before it could output anything.
t/basic....dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED test 1
        Failed 1/1 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/basic.t      2   512     1    2 200.00%  1
Failed 1/1 test scripts, 0.00% okay. 1/1 subtests failed, 0.00% okay.

Reply via email to