Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I can't get CGI::Session to pass its tests. I've tried installing by hand, with no luck. I've found other people have had problems on super search (node 352115).

I've played around with it some, and if I run at least one of the tests by hand ala
perl -I /root/.cpan/build/CGI-Session-4.03/blib/lib/ api3_db_file.t
It works fine but using make test it fails.

I imagine the test failures are trivail and the module works as advertised but, how come something like this happens? I havn't 'fixed' the tests yet, but It looks like a bug in the testing code. I guess my question of the monks is; how common is this sort of thing? I would think CGI::Session is a fairly popular module.

Replies are listed 'Best First'.
Re: CGI-Session-4.03 install problems
by perrin (Chancellor) on Jan 26, 2006 at 05:04 UTC
    How common is a single failed test? Pretty common. Some authors don't even intend their tests to work on every system. However, CGI-Session is one where I expect the authors did intend the tests to work for end users, and if you file a bug through the bug reporting link on CPAN this will most likely get fixed. It probably just needs to skip this test if DB_File is not functional on the system. It's not unusual for a few tests to break on certain platforms that are very different from what the author has access to. A good bug report will help take care of it.