Hello,

I have a test script like this:

use_ok('DBI');
my $drh = DBI->install_driver('mysql');

This script works fine if run as a standalone script or from a perl shell.
But testing the script with "make test" results in
> make test
PERL_DL_NONLAZY=1 /usr/global/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t


# Tried to use 'DBD::mysql'.
# Error: Can't load '/usr/global/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: /usr/global/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbol: mysql_real_escape_string at /usr/global/lib/perl5/5.8.0/i686-linux-thread-multi/DynaLoader.pm line 229.


Running the test without PERL_DL_NONLAZY=1 works fine too.

Can anyone explain this phenomenon?
Can someone tell me how to write a functional test script under these circumstances?


Thanks for any help
Oliver



Reply via email to