Skip Menu |

This queue is for tickets about the Unix-Passwd-File CPAN distribution.

Report information
The Basics
Id: 123507
Status: resolved
Priority: 0/
Queue: Unix-Passwd-File

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

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



Subject: Tests hang on Windows
Granted, the module probably does not make much sense on a Windows system. But the hanging test suite is causing an automated smoker to hang. I did a little debugging what was hanging: it's the t\add_delete_user_groups.t test, and it hangs while trying to get a lock. Actually it tries over and over. Probably the interesting lines seen in the debugger are: File::Flock::Retry::_lock(C:/Strawberry/perl/site/lib/File/Flock/Retry.pm:50): 50: if (flock($self->{_fh}, ($self->{shared} ? LOCK_SH : LOCK_EX) | LOCK_NB)) { And: DB<5> x $! 0 'Inappropriate I/O control operation' The used path is (mixed directory separator could be fine here, don't know): DB<3> x $path 0 'C:\\Users\\IEUser\\AppData\\Local\\Temp\\6SdUaXzqYj/simple/passwd' Besides of fixing File::Flock::Retry, another solution would be something like a 'die "OS unsupported" if $^O eq "MSWin32"' in the Makefile.PL.
Thanks for the report, for now I'm excluding Windows in the test scripts.