On Sat, 8 Oct 2005 21:19:48 -0400 "Sherzod Ruzmetov" <[EMAIL PROTECTED]> wrote: > Could you folks help me figure out the source of this failure: > http://www.nntp.perl.org/group/perl.cpan.testers/257098 . On this particular > platform all the DB_File related tests have failed. > > What's the version number of DB_File? I'm sure it's installed, otherwise > tests would've been skipped.
I have made some tests. I think the following terminal log should
be helpful.
[EMAIL PROTECTED] build/CGI-Session-4.03 % perl
-I/opt/perl/testers/.cpanplus/5.8.7/build/CGI-Session-4.03/blib/lib
t/api3_db_file.t
1..14
ok 1 - use CGI::Session;
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
not ok 10
# Failed test (t/api3_db_file.t at line 46)
Can't call method "id" on an undefined value at t/api3_db_file.t line 48.
# Looks like you planned 14 tests but only ran 10.
# Looks like your test died just after 10.
[EMAIL PROTECTED] build/CGI-Session-4.03 % cd t
[EMAIL PROTECTED] CGI-Session-4.03/t % perl
-I/opt/perl/testers/.cpanplus/5.8.7/build/CGI-Session-4.03/blib/lib
api3_db_file.t
1..14
ok 1 - use CGI::Session;
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
[EMAIL PROTECTED] CGI-Session-4.03/t %
I saw you are using "t" as the directory in api3_db_file.t. I don't
know why you choose a non-absolute directory and how do you expect that
directory to be interpreted by "make test". I have digged a little bit
into your code with no help. Personally I suggest you use something
like File::Spec->tmpdir, $ENV{"TEMP"} or File::Temp::tempdir. I would
not expect the same directory will be returned when running in different
directories, if you use a non-absolute directory.
Please tell me if you need more information.
--
Best regards,
imacat ^_*' <[EMAIL PROTECTED]>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt
<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug
pgpphtZwVNJGv.pgp
Description: PGP signature
