X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Fquote_names.t;h=ff82d9f0a28495fc2545482a2300f9ac5bf8059d;hb=3cff955a7163e263490edecd0a1922aa5ee6c6db;hp=e667ad360d93c3ed42375909344d1801bec0340c;hpb=622fe55b95abeb522646564ab5233c979301bb89;p=dbsrgits%2FDBIx-Class.git diff --git a/t/storage/quote_names.t b/t/storage/quote_names.t index e667ad3..ff82d9f 100644 --- a/t/storage/quote_names.t +++ b/t/storage/quote_names.t @@ -1,9 +1,11 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; use Data::Dumper::Concise; use Try::Tiny; -use lib qw(t/lib); + use DBICTest; my %expected = ( @@ -50,8 +52,11 @@ my %expected = ( ); for my $class (keys %expected) { SKIP: { - eval "require ${class}" - or skip "Skipping test of quotes for $class due to missing dependencies", 1; + + eval "require ${class}" or do { + note "Failed load of $class:\n\n$@\n\n"; + skip "Skipping test of quotes for $class due to missing compile-time dependencies", 1; + }; my $mapping = $expected{$class}; my ($quote_char, $name_sep) = @$mapping{qw/quote_char name_sep/}; @@ -132,7 +137,7 @@ for my $db (sort { # if something was produced - it better be quoted if ( # the SQLT producer has no idea what quotes are :/ - $db ne 'SYBASE' + ! grep { $db eq $_ } qw( SYBASE DB2 ) and my $ddl = try { $schema->deployment_statements } ) {