Ryan Barrett ha scritto:
hi all. is anyone successfully running the perl unit tests? i have perl
5.8.0
and libwww-perl 5.65 happily installed, but i'm getting this error:
heaven:~/wget/tests> ./Test1.px
Can't locate object method "new" via package "HTTPTest" at ./Test1.px
line 38.
the "new" method is defined in Test, which is HTTPTest's base class.
evidently
it finds and loads the Test and HTTPTest packages ok, it just can't
locate the
"new" method in either package. from "Programming Perl":
Can't locate object method "%s" via package "%s"
(F) You called a method correctly, and it correctly indicated a package
functioning as a class, but the package doesn't define that method
name,
nor do any of its base classes (which is why the message says "via"
rather than "in").
thoughts?
sorry, it's my fault. i was supposed to automate the testing process by
writing a "glue" script which runs all the tests in sequence, but i
never did it. i never got any feedback on the testing suite, so i
thought nobody except me was using it, and i focused on other things.
for the moment you're supposed to launch the tests in this way:
perl -I. Test1.px
from the tests dir.
--
Aequam memento rebus in arduis servare mentem...
Mauro Tortonesi http://www.tortonesi.com
University of Ferrara - Dept. of Eng. http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux http://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it