develooper Front page | perl.perl5.porters | Postings from July 2016

[perl #128638] Windows test failure in re/reg_mesg

Thread Next
From:
Dan Collins
Date:
July 16, 2016 22:05
Subject:
[perl #128638] Windows test failure in re/reg_mesg
Message ID:
rt-4.0.18-18915-1468706727-457.128638-75-0@perl.org
# New Ticket Created by  Dan Collins 
# Please include the string:  [perl #128638]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128638 >


perl -V:

W:\buildbot\windows1\win32\build\t>perl -I../lib -V
Summary of my perl5 (revision 5 version 25 subversion 3) configuration:

  Platform:
    osname=MSWin32
    osvers=10.0
    archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended
    useposix=true
    d_sigaction=undef
    useithreads=define
    usemultiplicity=define
    use64bitint=undef
    use64bitall=undef
    uselongdouble=undef
    usemymalloc=n
    bincompat5005=undef
  Compiler:
    cc='gcc'
    ccflags =' -s -O2 -DWIN32  -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields'
    optimize='-s -O2'
    cppflags='-DWIN32'
    ccversion=''
    gccversion='4.9.3'
    gccosandvers=''
    intsize=4
    longsize=4
    ptrsize=4
    doublesize=8
    byteorder=1234
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=12
    longdblkind=3
    ivtype='long'
    ivsize=4
    nvtype='double'
    nvsize=8
    Off_t='long long'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='g++'
    ldflags ='-s -L"c:\perl\lib\CORE" -L"C:\MinGW\lib"'
    libpth=C:\MinGW\lib
    libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    libc=
    so=dll
    useshrplib=true
    libperl=libperl525.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs
    dlext=dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags='-mdll -s -L"c:\perl\lib\CORE" -L"C:\MinGW\lib"'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    HAVE_INTERP_INTERN
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
    PERL_IMPLICIT_CONTEXT
    PERL_IMPLICIT_SYS
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
  Built under MSWin32
  Compiled at Jul 16 2016 17:21:19
  @INC:
    ../lib
    W:/buildbot/windows1/win32/build/t/lib
    .

This is blead revision f6203e997f3012b8aab4cd35fe49f58e4d71fb8c built by mingw.org GCC 4.9.3

W:\buildbot\windows1\win32\build\t>perl -I../lib harness re/reg_mesg.t
re/reg_mesg.t .. 1/? # Failed test 1483 - ... and gave expected number (0) of warnings at re/reg_mesg.t line 734
#      got "1"
# expected "0"
# Failed test 2191 - no warnings 'experimental::re_strict'; use re 'strict'; /[\x00-\N{SOH}]\x{100}/ did not die at re/reg_mesg.t line 729
#      got "\\N{} in inverted character class or as a range end-point is restricted to one character in regex; marked by <-- HERE in m/[\\x00-\\N{U+1 <-- HERE .}]\\x{100}/ at (eval 1440) line 1.\n"
# expected ""
re/reg_mesg.t .. Failed 2/2338 subtests

Test Summary Report
-------------------
re/reg_mesg.t (Wstat: 0 Tests: 2338 Failed: 2)
  Failed tests:  1483, 2191
Files=1, Tests=2338,  0 wallclock secs ( 0.08 usr +  0.00 sys =  0.08 CPU)
Result: FAIL

Detailed output from the failing tests:

ok 1480 -  /[\N{U+00}-\x01]\x{100}/ did not die
ok 1481 - ... and gave expected number (0) of warnings
ok 1482 -  /[\x00-\N{SOH}]\x{100}/ did not die
not ok 1483 - ... and gave expected number (0) of warnings
# Failed test 1483 - ... and gave expected number (0) of warnings at re/reg_mesg.t line 734
#      got "1"
# expected "0"
# Unexpected warnings gotten:
#       Using just the first character returned by \N{} in character class in regex; marked by <-- HERE in m/[\x00-\N{U+1. <-- HERE }]\x{100}/ at (eval 865) line 1.
<SNIP>
not ok 2191 - no warnings 'experimental::re_strict'; use re 'strict'; /[\x00-\N{SOH}]\x{100}/ did not die
# Failed test 2191 - no warnings 'experimental::re_strict'; use re 'strict'; /[\x00-\N{SOH}]\x{100}/ did not die at re/reg_mesg.t line 729
#      got "\\N{} in inverted character class or as a range end-point is restricted to one character in regex; marked by <-- HERE in m/[\\x00-\\N{U+1 <-- HERE .}]\\x{100}/ at (eval 1440) line 1.\n"
# expected ""

mingw-w64.org compilers do not exhibit this error, either on 32-bit or 64-bit builds, nor am I seeing this test failure on Cygwin or Linux.

Yes, I am just as confused by this as you are.

-- 
Respectfully,
Dan Collins


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