X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F750firebird.t;h=32eb15487529945c6f8d5e8ac483cf6d2c39ddce;hb=65d351219882184861384aedac6f251b6797d0d7;hp=d55474b64310283f40a87ff3e1a9d1e49f576617;hpb=9345b14c6c86aa8888bf5d47a569ee9bbde24f47;p=dbsrgits%2FDBIx-Class.git diff --git a/t/750firebird.t b/t/750firebird.t index d55474b..32eb154 100644 --- a/t/750firebird.t +++ b/t/750firebird.t @@ -52,7 +52,7 @@ for my $prefix (keys %$env2optdep) { SKIP: { }); my $dbh = $schema->storage->dbh; - my $sg = Scope::Guard->new(\&cleanup); + my $sg = Scope::Guard->new(sub { cleanup($schema) }); eval { $dbh->do(q[DROP TABLE "artist"]) }; $dbh->do(<storage->disconnect; # to avoid object FOO is in use errors