X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F750firebird.t;h=1d0638769fc06b2cb66b03d56973e87c0623a89e;hb=c863e1022571bfcc01fcbc4b690fbf3b72a12be8;hp=9a460eadd25e0ad2dbe540cd7ad91d5c8ae5c7ab;hpb=74b5397c077a964ed301d18f5ccda72afa91f353;p=dbsrgits%2FDBIx-Class.git diff --git a/t/750firebird.t b/t/750firebird.t index 9a460ea..1d06387 100644 --- a/t/750firebird.t +++ b/t/750firebird.t @@ -36,7 +36,12 @@ plan skip_all => join (' ', my $schema; -for my $prefix (keys %$env2optdep) { SKIP: { +my @test_order = map { "DBICTEST_FIREBIRD$_" } + DBICTest::RunMode->is_plain + ? ('', '_INTERBASE', '_ODBC') # Least likely to fail + : ('_ODBC', '_INTERBASE' , ''); # Most likely to fail + +for my $prefix (@test_order) { SKIP: { my ($dsn, $user, $pass) = map { $ENV{"${prefix}_$_"} } qw/DSN USER PASS/; @@ -47,7 +52,11 @@ for my $prefix (keys %$env2optdep) { SKIP: { skip ("Testing with ${prefix}_DSN needs " . DBIx::Class::Optional::Dependencies->req_missing_for( $env2optdep->{$prefix} ), 1) unless DBIx::Class::Optional::Dependencies->req_ok_for($env2optdep->{$prefix}); - $schema = DBICTest->connect_schema($dsn, $user, $pass, { + skip ("DBD::InterBase crashes if Firebird or ODBC are also loaded", 1) + if $prefix eq 'DBICTEST_FIREBIRD_INTERBASE' and + ($ENV{DBICTEST_FIREBIRD_DSN} or $ENV{DBICTEST_FIREBIRD_ODBC_DSN}); + + $schema = DBICTest::Schema->connect($dsn, $user, $pass, { auto_savepoint => 1, quote_names => 1, ($dsn !~ /ODBC/ ? (on_connect_call => 'use_softcommit') : ()), @@ -271,9 +280,7 @@ EOF "id" INT PRIMARY KEY, "bytea" INT, "blob" BLOB, - "blob2" BLOB, "clob" BLOB SUB_TYPE TEXT, - "clob2" BLOB SUB_TYPE TEXT, "a_memo" INT ) ]);