On May 14, at 06:57AM, Sherzod B. Ruzmetov <[EMAIL PROTECTED]> wrote:

>...CGI::Session itself does not require MySQL at all. 
>You see, according to the test results you sent
>...all other drivers passed, except the mysql driver. So I'm positive
>that the problem is in either in CGI::Session::MySQL or the test suite
>itself (t/mysql.t), which I need some help to figure out.
>
>[the test suite] should try to connecto MYSQL's test database,
>and if it fails for any reason, was supposed to skip the test,
>
>but for some reason eval() in the t/mysql.t didn't catch the error
>in MacOS X. I wounder why? 

I think it's because the only eval in t/mysql.t checks only for DBI, not DBI::mysql.
This is the eval you have:
   eval "require DBI";
   if ( $@ ) {
        print "skip\n";
        exit(0);
   }

Adding a similar one, looking specifically for the MySQL driver seems to get the 
results you're looking for:
   eval "require DBI::mysql";
   if ( $@ ) {
        print "skip\n";
        exit(0);
   }

Running 'make test' with that new eval inserted at line 20 in t/mysql.t gives these 
results:

t/db_file...........ok                                                       
t/file..............ok                                                       
t/mysql.............skipped test on this platform
All tests successful, 1 test skipped.

Please let me know if there's more I can do - I'm happy to help.
I'll check back around 9PM [-5:EDT] tonight.

-- Brian.


Reply via email to