X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fzzzzzzz_sqlite_deadlock.t;h=c967c25eee1040b6f74d97530c1e444c6a7e447b;hb=35f5c265f7114c98663ac471e54b4ea9e34b3f37;hp=268fdaac5b8eb0c6cdaacb5985685aa7f54127af;hpb=48d2c1ea89b1346f1a77f76b9bdedea432021fa0;p=dbsrgits%2FDBIx-Class.git diff --git a/t/zzzzzzz_sqlite_deadlock.t b/t/zzzzzzz_sqlite_deadlock.t index 268fdaa..c967c25 100644 --- a/t/zzzzzzz_sqlite_deadlock.t +++ b/t/zzzzzzz_sqlite_deadlock.t @@ -9,14 +9,22 @@ use File::Temp (); use DBICTest; use DBICTest::Schema; -plan tests => 2; -my $wait_for = 10; # how many seconds to wait +if ( DBICTest::RunMode->is_plain ) { + plan( skip_all => "Skipping test on plain module install" ); +} -$TODO = "This seems to be a DBD::SQLite problem, don't test for now"; +plan tests => 2; +my $wait_for = 120; # 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; @@ -30,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;