fix Win32 file use error in t/storage/reconnect.t
authorRafael Kitover <rkitover@cpan.org>
Tue, 13 Mar 2012 17:57:27 +0000 (13:57 -0400)
committerPeter Rabbitson <ribasushi@cpan.org>
Wed, 14 Mar 2012 07:13:00 +0000 (08:13 +0100)
commit463c56d21df43d518a5a966cc65e8cab60126c2e
treea31d10d16b522194da6c4cb6cfa3a5b9ba02c39e
parent2d48959ab73f3f9a60cbcf42e115a1b724cb45cd
fix Win32 file use error in t/storage/reconnect.t

Even though the fake SQLite db file is chmod 0000, for some reason
SQLite still opens it on Win32 and holds it open; this prevents deleting
it and replacing it with the original db file so that the rest of the
tests can run.

TODO: followup with the DBD::SQLite folks.

Disconnect the $dbh on Win32 so the unlink can succeed, and remove the
following SKIP: block (for if db is "encrypted") which is no longer
necessary.
t/storage/reconnect.t