Error in Make Test



Hello,

In the process of executing "make test", an error message is showing.
Following is the command sequence, followed by a copy of the test
script. The perl module is working but the test is resulting in error.
This is a module I am currently working on for open source release. The
test file is very simple, and just checks for the correct instance of
the class.

Has anyone experienced this problem and knows about the solution? Thank
you in advance.

-Sincerely,
Singh T. Junior


The command sequence

perl Makefile.PL
make
make test

is shown here:


[tsingh@zurich XMLScripted]$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Download::XMLScripted::XMLScripted

[tsingh@zurich XMLScripted]$ make
cp lib/Net/Download/XMLScripted/XMLScripted.pm
blib/lib/Net/Download/XMLScripted/XMLScripted.pm
AutoSplitting blib/lib/Net/Download/XMLScripted/XMLScripted.pm
(blib/lib/auto/Net/Download/XMLScripted/XMLScripted)
Manifying blib/man3/Net::Download::XMLScripted::XMLScripted.3pm

[tsingh@zurich XMLScripted]$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Net-Download-XMLScripted-XMLScripted....# No tests run!
t/Net-Download-XMLScripted-XMLScripted....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-3
Failed 3/3 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List
of Failed
-------------------------------------------------------------------------------
t/Net-Download-XMLScripted-XMLScr 255 65280 3 6 200.00% 1-3
Failed 1/1 test scripts, 0.00% okay. 3/3 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2


************************************************************************************************
and here is the test script:

[tsingh@zurich XMLScripted]$ cat
t/Net-Download-XMLScripted-XMLScripted.t
# Before `make install' is performed this script should be runnable
with
# `make test'. After `make install' it should work as `perl
Net-Download-XMLScripted-XMLScripted.t'

#########################

# change 'tests => 1' to 'tests => last_test_to_print';

use Test::More tests => 3;
BEGIN { use_ok('Net::Download::XMLScripted::XMLScripted') };

#########################

# Insert your test code below, the Test::More module is use()ed here so
read
# its man page ( perldoc Test::More ) for help writing this test
script.

# Create XMLScripted Object
my $xmlScripted = Net::Download::XMLScripted::XMLScripted::->new();
ok( defined $xmlScripted, 'new() returned something' );
ok ( $xmlScripted->isa('Net::Download::XMLScripted::XMLScripted'), "
and it's the right class" );

.



Relevant Pages

  • Re: Help with script to list non-html files in folder
    ... > although I have programmed in Delphi and VBA, and I took Matt Wright's ... > three folders but use the same script. ... are free to obtain the *actual* error message. ... Why do you refuse to let Perl ...
    (comp.infosystems.www.authoring.cgi)
  • Re: Using CGI and GD modules
    ... > test.cgi script shown below is adapted from the "CGI programming" book ... The first and most obvious thing to do is to get a better error message. ... Cocoa programming in Perl: http://camelbones.sourceforge.net ...
    (comp.lang.perl.misc)
  • Re: splitting cvs file and insert in mysql via DBI
    ... > or a number in csv file. ... Perl says that it find an a number or a dot ... How, *exactly*, are you calling this script? ... That error message would ...
    (comp.lang.perl.misc)
  • Re: Perl to Tcl/Tk Converion
    ... # The next line prints the simple error message ... I'm not sure what opendoes in perl, so you may need to change the "r" ... > a given Perl Script to Tcl Script. ...
    (comp.lang.tcl)
  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)