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

Owner: Nobody in particular
Requestors: ishigaki [...]

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


Subject: cleanup fails under windows
Download (untitled) / with headers
text/plain 290b
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/ b/lib/DBIx/Class/Schema/PopulateMore/Test/ index 0fdb607..8cbe778 100644 --- a/lib/DBIx/Class/Schema/PopulateMore/Test/ +++ b/lib/DBIx/Class/Schema/PopulateMore/Test/ @@ -115,6 +115,7 @@ cleanup any temporary files sub cleanup { my $self = shift @_; + $self->storage->dbh->disconnect; unlink $self->test_dbfile_path; }

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to