X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fzzzzzzz_sqlite_deadlock.t;h=a049f222202e87e86ade2f05e6bf1b745ecc8848;hb=ab35aeab54799f0ffdec51c55fb4546ad5e0188e;hp=80990f40d94f6922f501806ef19e9ab294c6a046;hpb=b230b4bee9367c652bc213f09053386a5f9aeb12;p=dbsrgits%2FDBIx-Class.git diff --git a/t/zzzzzzz_sqlite_deadlock.t b/t/zzzzzzz_sqlite_deadlock.t index 80990f4..a049f22 100644 --- a/t/zzzzzzz_sqlite_deadlock.t +++ b/t/zzzzzzz_sqlite_deadlock.t @@ -9,12 +9,22 @@ use File::Temp (); use DBICTest; use DBICTest::Schema; +unless ( DBICTest::AuthorCheck->is_author || $ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING} ) { + plan( skip_all => "Skipping test on plain module install" ); +} + plan tests => 2; -my $wait_for = 10; # how many seconds to wait +my $wait_for = 30; # how many seconds to wait for my $close (0,1) { - my $tmp = File::Temp->new( UNLINK => 1, TMPDIR => 1, SUFFIX => '.sqlite' ); + my $tmp = File::Temp->new( + UNLINK => 1, + TMPDIR => 1, + SUFFIX => '.sqlite', + EXLOCK => 0, # important for BSD and derivatives + ); + my $tmp_fn = $tmp->filename; close $tmp if $close; @@ -28,7 +38,7 @@ for my $close (0,1) { lives_ok (sub { my $schema = DBICTest::Schema->connect ("DBI:SQLite:$tmp_fn"); DBICTest->deploy_schema ($schema); - DBICTest->populate_schema ($schema); + #DBICTest->populate_schema ($schema); }); alarm 0;