X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F752sqlite.t;h=b273d973439873d225b267bed0817fce10b45ac6;hb=052a832c5f6fe0f82a4db48e176525f700c44159;hp=d9a8e5d7e9470822e6f93296cbc3533afb9e35b4;hpb=d830d9f4a137fa7ce6c14fe929a67951c4170b9e;p=dbsrgits%2FDBIx-Class.git diff --git a/t/752sqlite.t b/t/752sqlite.t index d9a8e5d..b273d97 100644 --- a/t/752sqlite.t +++ b/t/752sqlite.t @@ -9,7 +9,7 @@ use Config; use lib qw(t/lib); use DBICTest; -use DBIx::Class::_Util 'modver_gt_or_eq'; +use DBIx::Class::_Util qw(sigwarn_silencer modver_gt_or_eq); # savepoints test { @@ -64,7 +64,7 @@ for my $prefix_comment (qw/Begin_only Commit_only Begin_and_Commit/) { # FIXME warning won't help us for the time being # perhaps when (if ever) DBD::SQLite gets fixed, # we can do something extra here - local $SIG{__WARN__} = sub { warn @_ if $_[0] !~ /Internal transaction state .+? does not seem to match/ } + local $SIG{__WARN__} = sigwarn_silencer( qr/Internal transaction state .+? does not seem to match/ ) if ( $lit_txn_todo && !$ENV{TEST_VERBOSE} ); my ($c_begin, $c_commit) = map { $prefix_comment =~ $_ ? 1 : 0 } (qr/Begin/, qr/Commit/);