CC: | bug-Win32API-File [...] rt.cpan.org |
Subject: | [perl #108954] [PATCH] 4b8f0cf Fix test 50 on cygwin: \WINDOWS |
Date: | Tue, 24 Jan 2012 13:00:08 -0800 |
To: | "OtherRecipients of perl Ticket #108954":; |
From: | "Father Chrysostomos via RT" <perlbug-followup [...] perl.org> |
Forwarding....
On Tue Jan 24 09:36:23 2012, rurban@cpanel.net wrote:
Show quoted text
>
> This is a bug report for perl from rurban@cpanel.net,
> generated with the help of perlbug 1.39 running under perl 5.15.7.
>
> From 4b8f0cf7d7d1fd93f4741fef67fc8b63b3e478cb Mon Sep 17 00:00:00 2001
> From: Reini Urban <rurban@x-ray.at>
> Date: Tue, 21 Jun 2011 07:42:48 -0500
> Subject: [PATCH 5/5] Fix test 50 on cygwin: \WINDOWS
> MIME-Version: 1.0
> Content-Type: multipart/mixed; boundary="------------1.7.5.4"
>
> This is a multi-part message in MIME format.
> --------------1.7.5.4
> Content-Type: text/plain; charset=UTF-8; format=fixed
> Content-Transfer-Encoding: 8bit
>
> ---
> cpan/Win32API-File/t/file.t | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
>
> --------------1.7.5.4
> Content-Type: text/x-patch; name="0005-Fix-test-50-on-cygwin-
> WINDOWS.patch"
> Content-Transfer-Encoding: 8bit
> Content-Disposition: attachment; filename="0005-Fix-test-50-on-cygwin-
> WINDOWS.patch"
>
> diff --git a/cpan/Win32API-File/t/file.t b/cpan/Win32API-File/t/file.t
> index 0039b57..9a0dd88 100644
> --- a/cpan/Win32API-File/t/file.t
> +++ b/cpan/Win32API-File/t/file.t
> @@ -24,7 +24,7 @@ END {print "not ok 1\n" unless $loaded;}
> # the ../lib directory in @INC will no longer work once
> # we chdir() into the TEMP directory.
>
> -require Win32 unless defined &Win32::FormatMessage;
> +use Win32;
> use File::Spec;
> use Carp;
> use Carp::Heavy;
> @@ -342,8 +342,9 @@ if( !$ok ) {
> }
> print $ok ? "" : "not ", "ok ", ++$test, "\n"; # ok 49
>
> -$ok= -f $let.substr($ENV{WINDIR},3)."/win.ini";
> -$ok or print "# ",fileLastError(),"\n";
> +my $path = $ENV{WINDIR};
> +$ok= -f $let.substr($path,$^O eq 'cygwin'?2:3)."/win.ini";
> +$ok or print "# ",$let.substr($path,3)."/win.ini
> ",fileLastError(),"\n";
> print $ok ? "" : "not ", "ok ", ++$test, "\n"; # ok 50
>
> $ok= DefineDosDevice( DDD_REMOVE_DEFINITION|DDD_EXACT_MATCH_ON_REMOVE
> @@ -351,7 +352,6 @@ $ok= DefineDosDevice(
> DDD_REMOVE_DEFINITION|DDD_EXACT_MATCH_ON_REMOVE
> $ok or print "# $let,$dev: ",fileLastError(),"\n";
> print $ok ? "" : "not ", "ok ", ++$test, "\n"; # ok 51
>
> -my $path = $ENV{WINDIR};
> my $attrs = GetFileAttributes( $path );
> $ok= $attrs != INVALID_FILE_ATTRIBUTES;
> $ok or print "# $path gave invalid attribute value, attrs=$attrs:
> ",fileLastError(),"\n";
>
> --------------1.7.5.4--
>
>
> ---
> Flags:
> category=library
> severity=medium
> module=Win32API::File
> ---
> Site configuration information for perl 5.15.7:
>
> Configured by rurban at Sun Jan 22 12:13:34 CST 2012.
>
> Summary of my perl5 (revision 5 version 15 subversion 7)
> configuration:
>
> Platform:
> osname=linux, osvers=3.0.0-1-amd64, archname=x86_64-linux
> uname='linux reini 3.0.0-1-amd64 #1 smp sun jul 24 02:24:44 utc
> 2011 x86_64 gnulinux '
> config_args='-de -Dusedevel -Dinstallman1dir=none
> -Dinstallman3dir=none -Dinstallsiteman1dir=none
> -Dinstallsiteman3dir=none -Uuseithreads -Accflags='-msse4.2'
> -Accflags='-march=corei7' -Dcf_email='rurban@cpanel.net'
> -Dperladmin='rurban@cpanel.net' -Duseshrplib'
> hint=recommended, useposix=true, d_sigaction=define
> useithreads=undef, usemultiplicity=undef
> useperlio=define, d_sfio=undef, uselargefiles=define,
> usesocks=undef
> use64bitint=define, use64bitall=define, uselongdouble=undef
> usemymalloc=n, bincompat5005=undef
> Compiler:
> cc='cc', ccflags ='-msse4.2 -march=corei7 -fno-strict-aliasing
> -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64',
> optimize='-O2',
> cppflags='-msse4.2 -march=corei7 -fno-strict-aliasing -pipe
> -fstack-protector -I/usr/local/include'
> ccversion='', gccversion='4.6.1', gccosandvers=''
> intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
> d_longlong=define, longlongsize=8, d_longdbl=define,
> longdblsize=16
> ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
> alignbytes=8, prototype=define
> Linker and Libraries:
> ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
> libpth=/usr/local/lib /lib /usr/lib /usr/lib/x86_64-linux-gnu
> /lib64 /usr/lib64
> libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
> perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
> libc=, so=so, useshrplib=true, libperl=libperl.so
> gnulibc_version='2.13'
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
> -Wl,-rpath,/usr/local/lib/perl5/5.15.7/x86_64-linux/CORE'
> cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
> -fstack-protector'
>
> Locally applied patches:
>
>
> ---
> @INC for perl 5.15.7:
> /usr/local/lib/perl5/site_perl/5.15.7/x86_64-linux
> /usr/local/lib/perl5/site_perl/5.15.7
> /usr/local/lib/perl5/5.15.7/x86_64-linux
> /usr/local/lib/perl5/5.15.7
> /usr/local/lib/perl5/site_perl
> .
>
> ---
> Environment for perl 5.15.7:
> HOME=/home/rurban
> LANG=en_US.utf8
> LANGUAGE (unset)
> LD_LIBRARY_PATH (unset)
> LOGDIR (unset)
>
PATH=/home/rurban/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Show quoted text> PERL_BADLANG (unset)
> SHELL=/bin/bash
--
Father Chrysostomos
---
via perlbug: queue: perl5 status: new
https://rt.perl.org:443/rt3/Ticket/Display.html?id=108954