We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When mocking a file using Test::MockFile, flock is failing
Test::MockFile
flock
use Test::MockFile; use Fcntl; my $f = q[/tmp/myfile]; my $mocked = Test::MockFile->file( $f => q[content] ); open( my $fh, '>', $f ) or die; flock( $fh, Fcntl::LOCK_EX() | Fcntl::LOCK_NB() ) or die $!;
output
flock() on unopened filehandle GEN0 at t.pl line 12. Bad file descriptor at t.pl line 12.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When mocking a file using
Test::MockFile
,flock
is failingoutput
The text was updated successfully, but these errors were encountered: