]> git.decadent.org.uk Git - maypole.git/blobdiff - t/db_colinfo.t
fixed db_colinfo wrong number of tests
[maypole.git] / t / db_colinfo.t
index 74dea75bee3c7b728d67ec2a01a2d855a3f8ae93..50f885f5971aa1d67b75df227837b2ba4a28b5ef 100755 (executable)
@@ -1,9 +1,12 @@
 #!/usr/bin/perl -w
 use Test::More;
 use Data::Dumper;
+use DBI;
 use lib 'examples'; # Where BeerDB should live
 BEGIN {
-   plan tests => 45;
+       my $drh = eval { DBI->install_driver("mysql"); };
+        my $testcount = ($@) ? 45 : 65 ;
+        plan tests => $testcount;
 }
 
 $db            = 'test';