Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-PopulateMore CPAN distribution.

Report information
The Basics
Id: 63502
Status: new
Priority: 0/
Queue: DBIx-Class-Schema-PopulateMore

People
Owner: Nobody in particular
Requestors: ishigaki [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: cleanup fails under windows
Hi. DBIx::Class::Schema::Populate::Test::Schema fails to unlink a test database under Win32 (as Win32 refuses to unlink an open file), and the following tests fail saying tables/indices already exist. Attached patch would fix it by disconnecting the database explicitly. Hope this helps.
Subject: DBIx-Class-Schema-PopulateMore.patch
diff --git a/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm b/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm index 0fdb607..8cbe778 100644 --- a/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm +++ b/lib/DBIx/Class/Schema/PopulateMore/Test/Schema.pm @@ -115,6 +115,7 @@ cleanup any temporary files sub cleanup { my $self = shift @_; + $self->storage->dbh->disconnect; unlink $self->test_dbfile_path; }