Skip to content
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

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Conversation

craigberry
Copy link
Contributor

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.

craigberry added a commit to Perl/perl5 that referenced this pull request Aug 17, 2024
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
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes please!

Copy link
Contributor Author

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.
@toddr toddr merged commit fe9613f into Dual-Life:master Aug 20, 2024
3 of 19 checks passed
@toddr
Copy link
Collaborator

toddr commented Aug 20, 2024

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.

rawleyfowler pushed a commit to rawleyfowler/perl5 that referenced this pull request Sep 2, 2024
@briandfoy
Copy link

You can see what I did in my basic GitHub workflows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants