X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=t%2Fdb_colinfo.t;fp=t%2Fdb_colinfo.t;h=8f38f3bea85b3b901807b81f029a5be019ace354;hb=01323f127ddaf8eb9bd9b9d9ea8bcd6a6fd8a49e;hp=50f885f5971aa1d67b75df227837b2ba4a28b5ef;hpb=ce828f4b7309670fc8b0ed826fd2455c4d5412bb;p=maypole.git diff --git a/t/db_colinfo.t b/t/db_colinfo.t index 50f885f..8f38f3b 100755 --- a/t/db_colinfo.t +++ b/t/db_colinfo.t @@ -4,7 +4,12 @@ use Data::Dumper; use DBI; use lib 'examples'; # Where BeerDB should live BEGIN { - my $drh = eval { DBI->install_driver("mysql"); }; + my $drh = eval { + DBI->install_driver("mysql"); + my @databases = DBI->data_sources("mysql"); + die "couldn't connect to mysql" unless (@databases); + }; + warn "error : $@ \n" if ($@); my $testcount = ($@) ? 45 : 65 ; plan tests => $testcount; }