X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ficdt%2Fengine_specific%2Fmssql.t;h=2756858c8a0ca8ee6c517ffbb2a51d8fab85e298;hb=c0329273268971824784f239f32c7246e68da9c5;hp=523530a275d073d62cddb3194c66b4cc19002e6e;hpb=bf3587cecb3637047323634b0e00a5fbcb4a3409;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/icdt/engine_specific/mssql.t b/t/icdt/engine_specific/mssql.t index 523530a..2756858 100644 --- a/t/icdt/engine_specific/mssql.t +++ b/t/icdt/engine_specific/mssql.t @@ -1,3 +1,4 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } use DBIx::Class::Optional::Dependencies -skip_all_without => qw( ic_dt _rdbms_mssql_common ); use strict; @@ -5,9 +6,9 @@ use warnings; use Test::More; use Test::Exception; -use Scope::Guard (); use Try::Tiny; -use lib qw(t/lib); +use DBIx::Class::_Util 'scope_guard'; + use DBICTest; my @tdeps = qw( test_rdbms_mssql_odbc test_rdbms_mssql_sybase test_rdbms_mssql_ado ); @@ -52,7 +53,7 @@ for my $connect_info (@connect_info) { } } - my $guard = Scope::Guard->new(sub{ cleanup($schema) }); + my $guard = scope_guard { cleanup($schema) }; # $^W because DBD::ADO is a piece of crap try { local $^W = 0; $schema->storage->dbh->do("DROP TABLE track") };