Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-ObjectDriver CPAN distribution.

Report information
The Basics
Id: 24480
Status: new
Priority: 0/
Queue: Data-ObjectDriver

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: various tests fail on Win32 due to a permission issue
As MSWin32 doesn't allow to unlink open files, teardown_dbs() fails unless you explicitly disconnect db handles beforehand. Wrapping teardown_dbs() with sub DESTROY {} also works as it defers unlinking and lets GC do what we want. Attached patch is to do the latter. ---- t/00-compile...............ok t/01-col-inheritance.......ok 1/15Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 15. t/01-col-inheritance.......dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/02-basic.................ok 22/27Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 27. t/02-basic.................dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/03-primary-keys..........ok 4/20Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 20. t/03-primary-keys..........dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/04-clone.................ok 1/26Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 26. t/04-clone.................dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/05-deflate...............ok 9/18Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 18. t/05-deflate...............dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/06-errors................ok 1/3Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 3. t/06-errors................dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/07-has-a-cached..........ok 1/3Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 3. t/07-has-a-cached..........dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/07-has-a.................ok 1/7Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 7. t/07-has-a.................dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/11-sql...................ok t/20-driver-sqlite.........ok 1/7Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 7. t/20-driver-sqlite.........dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/31-cached................ok 52/54Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 54. t/31-cached................dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/32-partitioned...........ok 27/48Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 48. t/32-partitioned...........dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/33-views.................ok 1/6Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 6. t/33-views.................dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/34-both..................ok 22/42Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 42. t/34-both..................dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/41-callbacks.............ok 21/23Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 23. t/41-callbacks.............dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/42-callbacks-multi-pk....ok 8/13Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 13. t/42-callbacks-multi-pk....dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/50-profiling.............ok 12/18Can't teardown global: Permission denied at t/lib/db-common.pl line 29. # Looks like your test died just after 18. t/50-profiling.............dubious Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------ ------- t/01-col-inheritance.t 255 65280 15 0 ?? t/02-basic.t 255 65280 27 0 ?? t/03-primary-keys.t 255 65280 20 0 ?? t/04-clone.t 255 65280 26 0 ?? t/05-deflate.t 255 65280 18 0 ?? t/06-errors.t 255 65280 3 0 ?? t/07-has-a-cached.t 255 65280 3 0 ?? t/07-has-a.t 255 65280 7 0 ?? t/20-driver-sqlite.t 255 65280 7 0 ?? t/31-cached.t 255 65280 54 0 ?? t/32-partitioned.t 255 65280 48 0 ?? t/33-views.t 255 65280 6 0 ?? t/34-both.t 255 65280 42 0 ?? t/41-callbacks.t 255 65280 23 0 ?? t/42-callbacks-multi-pk.t 255 65280 13 0 ?? t/50-profiling.t 255 65280 18 0 ?? 2 subtests skipped. Failed 16/18 test scripts. 0/385 subtests failed. Files=18, Tests=385, 74 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) Failed 16/18 test programs. 0/385 subtests failed.
Subject: patch
Download patch
application/octet-stream 6.9k

Message body not shown because it is not plain text.



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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.