X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F752sqlite.t;h=fe076d1c4cd75d021729027591f19073d676a083;hb=40471d469bc450ab29789724d94f4c3c825c158f;hp=c07327ef44fde46bd2ad0797c2cdb6e798f5837c;hpb=7e763495bb690cf995a23e2c33c3f55c7d1842e4;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/752sqlite.t b/t/752sqlite.t index c07327e..fe076d1 100644 --- a/t/752sqlite.t +++ b/t/752sqlite.t @@ -1,3 +1,5 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; @@ -7,10 +9,14 @@ use Test::Warn; use Time::HiRes 'time'; use Math::BigInt; -use lib qw(t/lib); + use DBICTest; use DBIx::Class::_Util qw( sigwarn_silencer modver_gt_or_eq modver_gt_or_eq_and_lt ); +# make one deploy() round before we load anything else - need this in order +# to prime SQLT if we are using it (deep depchain is deep) +DBICTest->init_schema( no_populate => 1 ); + # check that we work somewhat OK with braindead SQLite transaction handling # # As per https://metacpan.org/source/ADAMK/DBD-SQLite-1.37/lib/DBD/SQLite.pm#L921 @@ -18,8 +24,6 @@ use DBIx::Class::_Util qw( sigwarn_silencer modver_gt_or_eq modver_gt_or_eq_and_ # # However DBD::SQLite 1.38_02 seems to fix this, with an accompanying test: # https://metacpan.org/source/ADAMK/DBD-SQLite-1.38_02/t/54_literal_txn.t - -require DBD::SQLite; my $lit_txn_todo = modver_gt_or_eq('DBD::SQLite', '1.38_02') ? undef : "DBD::SQLite before 1.38_02 is retarded wrt detecting literal BEGIN/COMMIT statements"