On 16 Feb 2004 at 15:16, Autrijus Tang wrote:

> On Sun, Feb 15, 2004 at 09:35:02PM -0800, Alan Stewart wrote:
> > On 16 Feb 2004 at 7:31, Autrijus Tang wrote:
> > >     http://aut.dyndns.org/dist/Win32-Exe-0.04.tar.gz
> > >     MD5 (Win32-Exe-0.04.tar.gz) = b2f60472ee77f746c8a5d17dacc23a4e
> > 
> > I can make Win32-Exe OK, but I am failing all tests. What version/author of 
> > Test::Simple/More/Builder are you using?
> 
> Stock T::More 0.47 by Schwern as shipped with 5.8.3, included under
> the inc/ library.
> 
> A failure log of manually running "perl -Ilib t/1-basic.t" and
> "perl -Ilib t/2-icon.t" will be appreciated with "perl -V" dump.
> 
> Thanks,
> /Autrijus/
> 

Looks like it should be:
  perl -Iinc t/1-basic.t
vice:
  perl -Ilib t/1-basic.t

################################################
C:\ACTIVE~1\Par\WIN32-~1.04>perl -Ilib t/1-basic.t
Can't locate Test/More.pm in @INC (@INC contains: 
C:/ACTIVE~1/Par/WIN32-~1.04/t/../../Parse-Binary/l
ib C:/ACTIVE~1/Par/WIN32-~1.04/t/../lib lib c:/ActivePerl/lib c:/ActivePerl/site/lib 
.) at t/1-basic
.t line 8.
BEGIN failed--compilation aborted at t/1-basic.t line 8.

C:\ACTIVE~1\Par\WIN32-~1.04>perl -Iinc t/1-basic.t
ok 1 - use Win32::Exe;
ok 2 - read_file
ok 3 - The object isa Win32::Exe
ok 4 - roundtrip
ok 5 - Subsystem
ok 6 - SetSubsystem
ok 7 - SetSubsystem with uppercase string
ok 8 - sections
ok 9 - roundtrip after refresh
ok 10 - The object isa Win32::Exe::Section
ok 11 - roundtrip after sections refresh
ok 12 - The object isa Win32::Exe::Section::Resources
ok 13 - roundtrip after resources refresh
ok 14 - resource names
ok 15 - version->info
ok 16 - version->get
ok 17 - version->set took effect
ok 18 - version->set remains after refresh
ok 19 - dump changed after resources refresh
ok 20 - roundtrip after resource refresh
1..20

##############################################


I installed Builder and More in my perl and I still got:

##############################################
C:\ACTIVE~1\Par\WIN32-~1.04>nmake test

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

        C:\ActivePerl\bin\perl.exe -Iinc -Ic:\ActivePerl\lib -Ic:\ActivePerl\lib -
MExtUtils::Command
 -e cp script/exe_update.pl blib\script\exe_update.pl
        C:\ActivePerl\bin\perl.exe -Iinc -Ic:\ActivePerl\lib -Ic:\ActivePerl\lib  -e 
"system qq[pl2b
at.bat ].shift" blib\script\exe_update.pl
        C:\ActivePerl\bin\perl.exe -Mblib -Ic:\ActivePerl\lib -Ic:\ActivePerl\lib -e 
"use Test::Harn
ess qw(&runtests $verbose); $verbose=0; runtests @ARGV;" t\0-signature.t t\1-basic.t 
t\2-icon.t
Using C:/ACTIVE~1/Par/WIN32-~1.04/blib
t\0-signature.......ok, 1/1 skipped: Next time around, consider install 
Module::Signature, so you ca
n verify the integrity of this distribution.
t\1-basic...........FAILED tests 1-20
        Failed 20/20 tests, 0.00% okay
t\2-icon............FAILED tests 1-12
        Failed 12/12 tests, 0.00% okay
Failed Test Status Wstat Total Fail  Failed  List of Failed
--------------------------------------------------------------------------------
t\1-basic.t                   20   20 100.00%  1-20
t\2-icon.t                    12   12 100.00%  1-12
1 subtest skipped.
Failed 2/3 test scripts, 33.33% okay. 32/33 subtests failed, 3.03% okay.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff'
Stop.

###################################

C:\ACTIVE~1\Par\WIN32-~1.04>perl -V
Summary of my perl5 (revision 5 version 6 subversion 1) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cl', ccflags ='-nologo -O1 -MD -Zi -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -
DHAVE_DES_FCRYPT
  -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX',
    optimize='-O1 -MD -Zi -DNDEBUG',
    cppflags='-DWIN32'
    ccversion='', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release  -
libpath:"c:\ActivePerl\lib\CORE"  -machine
:x86'
    libpth="C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib" "C:\Program 
Files\Microsoft Visua
l Studio\VC98\lib" "c:\ActivePerl\lib\CORE"
    libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib 
advapi32.lib sh
ell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib  
version.lib o
dbc32.lib odbccp32.lib msvcrt.lib
    perllibs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  
comdlg32.lib advapi32.li
b shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib wsock32.lib mpr.lib 
winmm.lib  version.l
ib odbc32.lib odbccp32.lib msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release  -
libpath:"c:\ActivePerl\lib\CORE
"  -machine:x86'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT 
PERL_IMPLICIT_SYS
  Locally applied patches:
        ActivePerl Build 635
  Built under MSWin32
  Compiled at Feb  4 2003 15:34:21
  @INC:
    c:/ActivePerl/lib
    c:/ActivePerl/site/lib
    .
###################################

After updating Test::Harness from the version 1.1604 that came with ActiveState Build 
635 to version 2.40 (and the Builder/More install), all tests are OK.

Looks like you'll need Test::Harness in your inc/ too.

Alan Stewart

Reply via email to