Grinnz / Mojo-SQLite

Mojo::SQLite - A tiny Mojolicious wrapper for SQLite
https://metacpan.org/pod/Mojo::SQLite
Other
27 stars 12 forks source link

on cygwin see filesystem (harmless) error messages about the *.db #23

Open stepht opened 2 years ago

stepht commented 2 years ago

Hi Grinnz, On cygwin for the latest Mojo::Sqlite I get:

t/results.t ............ 1/? cannot unlink file for /tmp/uShTlS3sau/sqlite.db: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot restore permissions to 0100755 for /tmp/uShTlS3sau/sqlite.db: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot unlink file for /tmp/uShTlS3sau/sqlite.db-shm: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot restore permissions to 0100755 for /tmp/uShTlS3sau/sqlite.db-shm: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot unlink file for /tmp/uShTlS3sau/sqlite.db-wal: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot restore permissions to 0100755 for /tmp/uShTlS3sau/sqlite.db-wal: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot remove directory for /tmp/uShTlS3sau: Directory not empty at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. t/results.t ............ ok t/sqlite_lite_app.t .... ok All tests successful. Files=7, Tests=55, 7 wallclock secs ( 0.11 usr 0.08 sys + 3.46 cusr 2.60 csys = 6.25 CPU)

installs fine though. I've got similar messages in past versions, and if I recall correctly needed to force-install.

hth p.s cyg version is recent

% steph@kerangi (/xddxc) % % cygcheck -dc | grep ^cygwin' ' cygwin 3.2.0-1

stepht commented 2 years ago

I forgot to add and similar for crud.t.... somehow the fs does not let the test remove the .db presumably because the code still has the db loaded ....

Grinnz commented 2 years ago

On windows this is usually due to antivirus. Does it happen consistently?

stepht commented 2 years ago

I am using windows 10. 21H2. The only antivirus is bit defender which can be stopped for a short while. doing so I get the same messages...

image

=== Runtime Requires ===

#

Module Want Have

--------------------- ----- ------

Carp any 1.50

DBD::SQLite 1.68 1.70

DBI 1.627 1.643

File::Spec::Functions any 3.78

File::Temp any 0.2311

Mojolicious 8.03 9.22

SQL::Abstract::Pg 1.0 1.0

Scalar::Util any 1.60

URI 1.69 5.10

URI::db 0.15 0.19

URI::file 4.21 5.10

# t/00-report-prereqs.t .. ok t/connection.t ......... ok t/crud.t ............... 1/? cannot unlink file for /tmp/66R6Y8nDUT/sqlite.db: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot restore permissions to 0100755 for /tmp/66R6Y8nDUT/sqlite.db: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot unlink file for /tmp/66R6Y8nDUT/sqlite.db-shm: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot restore permissions to 0100755 for /tmp/66R6Y8nDUT/sqlite.db-shm: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot unlink file for /tmp/66R6Y8nDUT/sqlite.db-wal: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot restore permissions to 0100755 for /tmp/66R6Y8nDUT/sqlite.db-wal: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot remove directory for /tmp/66R6Y8nDUT: Directory not empty at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. t/crud.t ............... ok t/database.t ........... ok t/migrations.t ......... ok t/results.t ............ 1/? cannot unlink file for /tmp/BoL11oJK5X/sqlite.db: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot restore permissions to 0100755 for /tmp/BoL11oJK5X/sqlite.db: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot unlink file for /tmp/BoL11oJK5X/sqlite.db-shm: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot restore permissions to 0100755 for /tmp/BoL11oJK5X/sqlite.db-shm: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot unlink file for /tmp/BoL11oJK5X/sqlite.db-wal: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot restore permissions to 0100755 for /tmp/BoL11oJK5X/sqlite.db-wal: Device or resource busy at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. cannot remove directory for /tmp/BoL11oJK5X: Directory not empty at /tmp/cpanm_t.d/p5lib/lib/perl5/File/Temp.pm line 2643. t/results.t ............ ok t/sqlite_lite_app.t .... ok All tests successful. Files=7, Tests=55, 10 wallclock secs ( 0.22 usr 0.06 sys + 4.78 cusr 4.18 csys = 9.24 CPU) Result: PASS OK Successfully tested Mojo-SQLite-3.008