From: Peter Rabbitson Date: Mon, 5 Nov 2012 05:18:16 +0000 (+0100) Subject: More 5.8 nested-cref test leaks X-Git-Tag: v0.08204~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e78660c76b6c44cbfcd9ca438fbca00d3b21bbff;p=dbsrgits%2FDBIx-Class.git More 5.8 nested-cref test leaks --- diff --git a/t/750firebird.t b/t/750firebird.t index 32eb154..aef3fcf 100644 --- a/t/750firebird.t +++ b/t/750firebird.t @@ -42,6 +42,8 @@ for my $prefix (keys %$env2optdep) { SKIP: { next unless $dsn; + note "Testing with ${prefix}_DSN"; + 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}); @@ -125,6 +127,7 @@ EOF # test savepoints throws_ok { $schema->txn_do(sub { + my ($schema, $ars) = @_; eval { $schema->txn_do(sub { $ars->create({ name => 'in_savepoint' }); @@ -135,7 +138,7 @@ EOF 'savepoint rolled back'); $ars->create({ name => 'in_outer_txn' }); die "rolling back outer txn"; - }); + }, $schema, $ars); } qr/rolling back outer txn/, 'correct exception for rollback';