-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
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
Don't try to utime an open file on VMS #121
Conversation
Also sent upstream: Dual-Life/autodie#121
t/utime.t
Outdated
@@ -8,6 +8,7 @@ use autodie; | |||
use File::Temp qw(tempfile); | |||
|
|||
my ($fh, $filename) = tempfile; | |||
close $fh if $^O eq 'VMS'; # can't utime an open file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @craigberry, wouldn't we be better to ALWAYS do this, not just for VMS? Then if it is needed, at least we'll notice the bug before VMS has to suffer with it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with always doing it -- I was just trying to limit the scope to where I knew it was needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes please!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've revised the commit to close the filehandle without checking platform. I couldn't build and test it locally since there's no Makefile.PL.
6407f65 changed to using File::Temp to create the temp file for this test, which implicitly opens it for exclusive access on VMS and prevents the ability to call utime on it. The filehandle is not used so just close it.
We'll need to sort the CI issues before I'll ship a new version could be a week or so because I'm waiting on upstream changes. |
Also sent upstream: Dual-Life/autodie#121
You can see what I did in my basic GitHub workflows. |
6407f65 changed to using File::Temp to create the temp file for this test, which implicitly opens it for exclusive access and prevents the ability to call utime on it.