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
[Win32]cpan/autodie/t/utime.t fails tests 2 & 4. #14918
Comments
From @sisyphusHi, For quite some time (up to and including current 5.23.3) Seems that this happens because cpan/autodie/t/touch_me unpacks for me as a The utime documentation says this: [quote] That possibly applies to the test 2 failure, where the first 2 arguments are So ... is it a bug in the perl source distro that cpan/autodie/t/touch_me Here is the test output when touch_me is readonly: ######################################### Cheers, |
From @tonycozOn Mon Sep 21 06:09:46 2015, sisyphus wrote:
It looks like a conflict between perl's packaging and autodie's tests. In a git checkout the file is writable, but in the archive all files are read-only by default, with some exceptions listed in Porting/makerel. Try the attached patch, you'll need to run Porting/makerel to build a dist to test. Tony |
From @tonycoz0001-perl-126133-autodie-touches-its-touch_me-make-it-wri.patchFrom aa8dcd33efcc39b304bed1c6b2e55c5339a5a0ba Mon Sep 17 00:00:00 2001
From: Tony Cook <tony@develop-help.com>
Date: Tue, 22 Sep 2015 10:52:10 +1000
Subject: [perl #126133] autodie touches its touch_me, make it writable
autodie's utime.t touches touch_me, in a git checkout that's fine
since the file is writable, but in a distribution, all files are
read-only by default, and on Win32 the utime() call the test expects
to succeed fails.
---
Porting/makerel | 1 +
1 file changed, 1 insertion(+)
diff --git a/Porting/makerel b/Porting/makerel
index a2160fb..07ffa40 100755
--- a/Porting/makerel
+++ b/Porting/makerel
@@ -148,6 +148,7 @@ my @writables = qw(
perlapi.c
cpan/Devel-PPPort/module2.c
cpan/Devel-PPPort/module3.c
+ cpan/autodie/t/touch_me
reentr.c
reentr.h
regcharclass.h
--
2.1.4
|
The RT System itself - Status changed from 'new' to 'open' |
From @sisyphus-----Original Message-----
Thanks Tony. I also added win32/GNUmakefile to @writables in Porting/makerel prior to Here's the actual makerel patch that I used: Inline Patch--- \_64\comp\perl-5.23.3-ld\Porting\makerel 2015-09-22 17:01:00 +1000
+++ makerel 2015-09-22 16:34:37 +1000
@@ -148,12 +148,14 @@
perlapi.c
cpan/Devel-PPPort/module2.c
cpan/Devel-PPPort/module3.c
+ cpan/autodie/t/touch_me
reentr.c
reentr.h
regcharclass.h
regnodes.h
warnings.h
lib/warnings.pm
+ win32/GNUmakefile
win32/Makefile
win32/Makefile.ce
win32/makefile.mk
Cheers,
Rob |
From @tonycozOn Tue Sep 22 00:39:00 2015, sisyphus wrote:
Applied with the addition of win32/GNUmakefile as e120c24. Tony |
@tonycoz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126133 (status was 'resolved')
Searchable as RT126133$
The text was updated successfully, but these errors were encountered: