Discussion:
[perl #57286] t/examples/library.t fails during make test on OS X 10.5.4
(too old to reply)
Jeff Lavallee
2008-07-25 22:46:25 UTC
Permalink
# New Ticket Created by Jeff Lavallee
# Please include the string: [perl #57286]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57286 >


---
osname= darwin
osvers= 9.0
arch= darwin-thread-multi-2level
cc= cc
---
Flags:
category=library
severity=medium
ack=no
---
Latest parrot code from svn. During make test, t/example/library.t fails:

t/examples/library...........................ok 1/4Failed to load libpcre
current instr.: 'parrot;PCRE;init' pc 110 (library/pcre.pir:111)
called from Sub 'parrot;PCRE;main' pc 269 (examples/library/pcre.pir:39)

# Failed test 'examples/library/pcre.pir'
# at t/examples/library.t line 67.
# got: ''
# expected: 'asdf =~ /as/
# 1 match(es):
# as
# '
t/examples/library...........................NOK 3/4# Looks like you failed 1 test of 4.
t/examples/library...........................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 3
Failed 1/4 tests, 75.00% okay



---
Summary of my parrot 0.6.4 (r29739) configuration:
configdate='Fri Jul 25 22:26:02 2008 GMT'
Platform:
osname=darwin, archname=darwin-2level
jitcapable=0, jitarchname=nojit,
jitosname=darwin, jitcpuarch=i386
execcapable=0
perl=perl
Compiler:
cc='cc', ccflags='-fno-common -no-cpp-precomp -pipe -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT -falign-functions=16 -fvisibility=hidden -maccumulate-outgoing-args -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wmissing-braces -Wmissing-field-initializers -Wno-missing-format-attribute -Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch -Wswitch-default -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused -Wvariadic-macros -Wwrite-strings -Wbad-function-cast -W
declaration-after-statement -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull -I/opt/local/include -DHAS_GETTEXT',
Linker and Libraries:
ld='c++', ldflags=' -L/Users/jeff/Code/parrot/blib/lib -L/opt/local/lib',
cc_ldflags='',
libs='-lm -lutil -lreadline -lpcre -framework OpenGL -framework GLUT -lcrypto -lintl'
Dynamic Linking:
share_ext='.dylib', ld_share_flags='-dynamiclib -undefined dynamic_lookup',
load_ext='.bundle', ld_load_flags='-undefined dynamic_lookup -bundle'
Types:
iv=long, intvalsize=4, intsize=4, opcode_t=long, opcode_t_size=4,
ptrsize=4, ptr_alignment=1 byteorder=1234,
nv=double, numvalsize=8, doublesize=8

---
Environment:
DYLD_LIBRARY_PATH =/usr/local/lib/ImageMagick/lib
HOME =/Users/jeff
LANG =en_US.UTF-8
LANGUAGE (unset)
LC_CTYPE =en_US.UTF-8
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH =/usr/local/bin:/usr/local/sbin:/usr/bin:/Users/jeff/.bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin/:/usr/local/mysql/bin:/usr/X11R6/bin:/bin:/opt/local/bin:/usr/local/git/bin
SHELL =/bin/bash
James Keenan via RT
2008-07-26 22:49:30 UTC
Permalink
I tried this test on an older Mac: OS X 10.4 on Darwin. I did not get
any outright failures because one test is SKIPped and another is
expected to fail and hence is TODOed out.

$ prove -v t/examples/library.t
t/examples/library....
1..4
ok 1 - examples/library/getopt_demo.pir
ok 2 - examples/library/md5sum.pir
ok 3 # SKIP no pcre-config
not ok 4 - ncurses_life.pir # TODO ncurses_life.pir not testable yet

# Failed (TODO) test 'ncurses_life.pir'
# at t/examples/library.t line 77.
ok
All tests successful.
Files=1, Tests=4, 6 wallclock secs ( 0.04 usr 0.02 sys + 0.41 cusr
0.28 csys = 0.75 CPU)
Result: PASS


Could you post the output of prove -v on this file?

Thank you very much.
kid51
Chromatic
2008-07-27 17:32:47 UTC
Permalink
Post by Jeff Lavallee
t/examples/library...........................ok 1/4Failed to load libpcre
current instr.: 'parrot;PCRE;init' pc 110 (library/pcre.pir:111)
called from Sub 'parrot;PCRE;main' pc 269 (examples/library/pcre.pir:39)
# Failed test 'examples/library/pcre.pir'
# at t/examples/library.t line 67.
# got: ''
# expected: 'asdf =~ /as/
# as
# '
t/examples/library...........................NOK 3/4# Looks like you failed
1 test of 4. t/examples/library...........................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 3
Failed 1/4 tests, 75.00% okay
The Perl 5 test code tries to see if PCRE is installed with:

my $has_pcre = Parrot::Test::run_command( $cmd, STDERR =>
File::Spec->devnull() ) == 0;

Apparently on your system, this succeeds, but loading libpcre fails. The test
code in t/examples/library.t should probably catch this exception and abort
cleanly.

-- c
James Keenan via RT
2008-11-23 21:30:46 UTC
Permalink
This appears to be the same issue as reported in RT 59112, so I am going
to merge this ticket into that.

kid51

Loading...