X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Fdbictest_unlink_guard.t;fp=xt%2Fdbictest_unlink_guard.t;h=83a38e9de07b62faafdbc5c822b3fd3bc35190f7;hb=fe0708a2d68b5d34b6bc6f7e70164c3e569f1dd0;hp=0000000000000000000000000000000000000000;hpb=01272eb81fe3a43e0a2f7befa465cc669945d543;p=dbsrgits%2FDBIx-Class.git diff --git a/xt/dbictest_unlink_guard.t b/xt/dbictest_unlink_guard.t new file mode 100644 index 0000000..83a38e9 --- /dev/null +++ b/xt/dbictest_unlink_guard.t @@ -0,0 +1,19 @@ +use warnings; +use strict; + +use Test::More; +use lib 't/lib'; +use DBICTest; + +# Once upon a time there was a problem with a leaking $sth +# which in turn delayed the $dbh destruction, which in turn +# made the inode comaprison fire at the wrong time +# This simulates the problem without doing much else +for (1..2) { + my $schema = DBICTest->init_schema( sqlite_use_file => 1 ); + $schema->storage->ensure_connected; + isa_ok ($schema, 'DBICTest::Schema'); +} + +done_testing; +