develooper Front page | perl.perl5.porters | Postings from February 2013

[perl #116971] make test tries to use a different perl than the one being build, /t/lib/croak.t t/lib/common.pl

Thread Next
From:
bulk88
Date:
February 27, 2013 19:30
Subject:
[perl #116971] make test tries to use a different perl than the one being build, /t/lib/croak.t t/lib/common.pl
Message ID:
rt-3.6.HEAD-31961-1361993396-523.116971-75-0@perl.org
# New Ticket Created by  bulk88 
# Please include the string:  [perl #116971]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=116971 >



This is a bug report for perl from bulk88@hotmail.com,
generated with the help of perlbug 1.39 running under perl 5.17.10.


-----------------------------------------------------------------
[Please describe your issue here]

I did a make test on a blead and I got a bunch of fails, I have done 
some debugging on the first one /lib/croak.t (IDC about the others, 
although the exit status 255s I think/guess are all the same, havn't 
looked at them) . What I was able to debug (I am not familiar with 
test.pl and its friends) is that @INC includes "../../lib" "../lib" but 
winds up with CWD = /t, then does a require, and reaching out of the 
build dir, and in my case it catches another older blead perl.

The "../../lib" in @INC I think is coming from
http://perl5.git.perl.org/perl.git/commit/463cf0628d7a451d99106f7101151d3a9b97fcbf?f=t/lib/common.pl 
The reason why a require was done is 
http://perl5.git.perl.org/perl.git/tree/HEAD:/ext/Win32CORE .


The simple answer is dont keep a build perl dir in a perl install dir, 
but I think someone is wrong here if its reaching out of the build dir 
and trying to load other things on the disk.

_______________________________________________________________________________
Test Summary Report
-------------------
lib/croak.t                                                     (Wstat: 
65280 Te
sts: 38 Failed: 0)
   Non-zero exit status: 255
porting/pod_rules.t                                             (Wstat: 
0 Tests:
  0 Failed: 0)
   Parse errors: No plan found in TAP output
../dist/IO/t/cachepropagate-tcp.t                               (Wstat: 
2304 Tes
ts: 5 Failed: 0)
   Non-zero exit status: 9
   Parse errors: Bad plan.  You planned 8 tests but ran 5.
../lib/charnames.t                                              (Wstat: 
65280 Te
sts: 17099 Failed: 0)
   Non-zero exit status: 255
../lib/feature.t                                                (Wstat: 
65280 Te
sts: 57 Failed: 0)
   Non-zero exit status: 255
../lib/strict.t                                                 (Wstat: 
65280 Te
sts: 139 Failed: 0)
   Non-zero exit status: 255
../lib/subs.t                                                   (Wstat: 
65280 Te
sts: 11 Failed: 0)
   Non-zero exit status: 255
Files=2386, Tests=615859, 2896 wallclock secs (79.44 usr + 25.98 sys = 
105.42 CP
U)
Result: FAIL
NMAKE : fatal error U1077: '..\perl.exe' : return code '0x2'
Stop.

C:\p517\g\win32>


__________________________________________________________________________________
***later **** some files were removed from /t/lib/croak dir to narrow 
down problem leaving only file "toke"

__________________________________________________________________________________

C:\p517\g\t>..\perl.exe -I..\lib harness -v ./lib/croak.t
./lib/croak.t ..
1..17
# From lib\croak\toke
ok 1 - Unterminated here-doc in string eval
ok 2 - Unterminated here-doc in s/// string eval
ok 3 - Missing name in "my sub"
ok 4 - Missing name in "our sub"
ok 5 - Missing name in "state sub"
ok 6 - Integer constant overloading returning undef
ok 7 - Float constant overloading returning undef
ok 8 - Binary constant overloading returning undef
ok 9 - String constant overloading returning undef
ok 10 - Regexp constant overloading when *^H is undefined
ok 11 - \N{...} when charnames fails to load but without an error
ok 12 - Integer constant overloading returning undef
ok 13 - Float constant overloading returning undef
ok 14 - Binary constant overloading returning undef
ok 15 - String constant overloading returning undef
ok 16 - Regexp constant overloading returning undef
ok 17 - Unterminated delimiter for here document
cwd is C:\p517\g\t

Perl API version v5.17.9 of Win32 does not match v5.17.10 at 
../../lib/DynaLoade
r.pm line 213.
Compilation failed in require at ../lib/Cwd.pm line 768.
BEGIN failed--compilation aborted.
END failed--call queue aborted.
inc is ../../lib ../lib
Dubious, test returned 255 (wstat 65280, 0xff00)
All 17 subtests passed

Test Summary Report
-------------------
./lib/croak.t (Wstat: 65280 Tests: 17 Failed: 0)
   Non-zero exit status: 255
Files=1, Tests=17,  6 wallclock secs ( 0.05 usr +  0.14 sys =  0.19 CPU)
Result: FAIL

__________________________________________________________________________________

CWD.pm was modified to
----------------------------------------------------------------------------------
sub _win32_cwd {
     # Need to avoid taking any sort of reference to the typeglob or the 
code in
     # the optree, so that this tests the runtime state of things, as the
     # ExtUtils::MakeMaker tests for "miniperl" need to be able to fake 
things at
     # runtime by deleting the subroutine. *foo{THING} syntax on a 
symbol table
     # lookup avoids needing a string eval, which has been reported to cause
     # problems (for reasons that we haven't been able to get to the 
bottom of -
     # rt.cpan.org #56225)
     if (*{$DynaLoader::{boot_DynaLoader}}{CODE}) {
         print "cwd is ".`cd`."\n";
         local($,);
         $, = " ";
         print("inc is", @INC);
	$ENV{'PWD'} = Win32::GetCwd();
     }
     else { # miniperl
	chomp($ENV{'PWD'} = `cd`);
     }
     $ENV{'PWD'} =~ s:\\:/:g ;
     return $ENV{'PWD'};
}
--------------------------------------------------------------------------------

C:\p517>dir
  Volume in drive C has no label.
  Volume Serial Number is 0CFF-E7B6

  Directory of C:\p517

02/27/2013  04:37 AM    <DIR>          .
02/27/2013  04:37 AM    <DIR>          ..
02/17/2013  12:43 AM    <DIR>          bin  #some blead installation
02/27/2013  06:17 AM    <DIR>          g  #a git repo
12/27/2012  12:25 PM    <DIR>          html #some blead  installation
02/16/2013  10:43 PM    <DIR>          lib #some blead  installation
02/16/2013  01:14 PM                52 pax_global_header #from a checkout
02/20/2013  08:47 PM    <DIR>          pefwd #a build dir
02/22/2013  12:53 AM    <DIR>          perl-ce #a build dir
10/24/2012  02:01 AM               632 rebuild.bat #irrelavent
12/27/2012  12:23 PM    <DIR>          site #some blead  installation
02/27/2013  12:19 PM    <DIR>          src #a build dir
                2 File(s)            684 bytes
               10 Dir(s)  475,016,368,128 bytes free

C:\p517>
________________________________________________________________________________________






[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
     category=core
     severity=medium
---
Site configuration information for perl 5.17.10:

Configured by Administrator at Wed Feb 27 05:09:08 2013.

Summary of my perl5 (revision 5 version 17 subversion 10) configuration:
   Derived from:
   Platform:
     osname=MSWin32, osvers=5.2, archname=MSWin32-x64-multi-thread
     uname=''
     config_args='undef'
     hint=recommended, useposix=true, d_sigaction=undef
     useithreads=define, usemultiplicity=define
     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
     use64bitint=define, use64bitall=undef, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cl', ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL 
-fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE 
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE 
-DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS 
-DUSE_PERLIO',
     optimize='-O1 -MD -Zi -DNDEBUG -GL -fp:precise',
     cppflags='-DWIN32'
     ccversion='15.00.30729.01', gccversion='', gccosandvers=''
     intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678
     d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
     ivtype='__int64', ivsize=8, nvtype='double', nvsize=8, 
Off_t='__int64', lseeksize=8
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf 
-ltcg  -libpath:"c:\p517\lib\CORE"  -machine:AMD64 
"/manifestdependency:type='Win32' 
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' 
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"'
     libpth=\lib
     libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib 
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib 
netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib 
odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
     perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib 
winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib 
oleaut32.lib  netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib 
version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
     libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl517.lib
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug 
-opt:ref,icf -ltcg  -libpath:"c:\p517\lib\CORE"  -machine:AMD64 
"/manifestdependency:type='Win32' 
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' 
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"'

Locally applied patches:


---
@INC for perl 5.17.10:
     C:/p517/g/lib
     .

---
Environment for perl 5.17.10:
     CYGWIN=tty
     HOME (unset)
     LANG (unset)
     LANGUAGE (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
     PATH=C:\Program Files (x86)\Git\bin;c:\Program Files 
(x86)\Microsoft Visual Studio 
9.0\VC\BIN\amd64;c:\WINDOWS\Microsoft.NET\Framework64\v3.5;c:\WINDOWS\Microsoft.NET\Framework64\v3.5\Microsoft 
.NET Framework 3.5 (Pre-Release 
Version);c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;c:\Program 
Files (x86)\Microsoft Visual Studio 9.0\VC\VCPackages;c:\Program Files 
(x86)\Microsoft Visual Studio 9.0\Common7\IDE;c:\Program Files 
(x86)\Microsoft Visual Studio 9.0\Common7\Tools;c:\Program Files 
(x86)\Microsoft Visual Studio 9.0\Common7\Tools\bin;C:\Program 
Files\Microsoft SDKs\Windows\v6.0A\bin\x64;C:\Program Files\Microsoft 
SDKs\Windows\v6.0A\bin\win64\x64;C:\Program Files\Microsoft 
SDKs\Windows\v6.0A\bin;C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
Files (x86)\Microsoft Visual Studio 9.0\VC\bin;C:\Program Files 
(x86)\Microsoft Visual Studio 9.0\VC;
     PERL_BADLANG (unset)
     PERL_JSON_BACKEND=JSON::XS
     PERL_YAML_BACKEND=YAML
     SHELL (unset)


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About