File: dbictest_unlink_guard.t

package info (click to toggle)
libdbix-class-perl 0.082844-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,320 kB
  • sloc: perl: 27,215; sql: 322; sh: 29; makefile: 16
file content (19 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;