vti/pocketio — Issue #8: t/transport/websocket.t fails only first time
Author: ytnobody
Created: 2011-11-17 02:29:55+00:00
State: open

[ytnobody@ytnobody mysockio]$ uname -a
Linux ytnobody.net 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

[ytnobody@ytnobody mysockio]$ perl -V
Summary of my perl5 (revision 5 version 12 subversion 3) configuration:

Platform:
osname=linux, osvers=2.6.18-194.26.1.el5, archname=x86_64-linux
uname='linux ytnobody.net 2.6.18-194.26.1.el5 #1 smp tue nov 9 12:54:20 est 2010 x86_64 x86_64 x86_64 gnulinux '
config_args='-de -Dprefix=/home/ytnobody/perl5/perlbrew/perls/perl-5.12.3'
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 ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-48)', 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 /lib64 /usr/lib64 /usr/local/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'

Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
USE_PERL_ATOF
Built under linux
Compiled at Mar 24 2011 14:51:36
%ENV:
PERLBREW_PATH="/home/ytnobody/perl5/perlbrew/bin:/home/ytnobody/perl5/perlbrew/perls/current/bin"
PERLBREW_PERL="perl-5.12.3"
PERLBREW_ROOT="/home/ytnobody/perl5/perlbrew"
PERLBREW_VERSION="0.18"
@INC:
/home/ytnobody/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/x86_64-linux
/home/ytnobody/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3
/home/ytnobody/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/x86_64-linux
/home/ytnobody/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3
.

[ytnobody@ytnobody mysockio]$ cpanm PocketIO
--> Working on PocketIO
Fetching http://search.cpan.org/CPAN/authors/id/V/VT/VTI/PocketIO-0.00905.tar.gz ... OK
Configuring PocketIO-0.00905 ... OK
Building and testing PocketIO-0.00905 ... FAIL
! Installing PocketIO failed. See /home/ytnobody/.cpanm/build.log for details.

[ytnobody@ytnobody mysockio]$ cpanm --look PocketIO
--> Working on PocketIO
Fetching http://search.cpan.org/CPAN/authors/id/V/VT/VTI/PocketIO-0.00905.tar.gz ... OK
Entering /home/ytnobody/.cpanm/work/1321495921.6242/PocketIO-0.00905 with /bin/bash
[ytnobody@ytnobody PocketIO-0.00905]$ ls
Changes MANIFEST MANIFEST.SKIP META.yml MYMETA.json MYMETA.yml Makefile.PL examples inc lib t xt
[ytnobody@ytnobody PocketIO-0.00905]$ perl Makefile.PL
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
[Core Features]
- AnyEvent ...loaded. (5.31)
- Twiggy ...loaded. (0.1010)
- JSON ...loaded. (2.51)
- Plack ...loaded. (0.9985)
- Protocol::WebSocket ...loaded. (0.00906 >= 0.009003)
- Scalar::Util ...loaded. (1.22)
- Try::Tiny ...loaded. (0.09)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Writing Makefile for PocketIO
Writing MYMETA.yml and MYMETA.json
[ytnobody@ytnobody PocketIO-0.00905]$ make test
cp lib/PocketIO/Transport/XHRMultipart.pm blib/lib/PocketIO/Transport/XHRMultipart.pm
cp lib/PocketIO/Connection.pm blib/lib/PocketIO/Connection.pm
cp lib/PocketIO/Resource.pm blib/lib/PocketIO/Resource.pm
cp lib/PocketIO/Pool.pm blib/lib/PocketIO/Pool.pm
cp lib/PocketIO/Transport/XHRPolling.pm blib/lib/PocketIO/Transport/XHRPolling.pm
cp lib/PocketIO/Transport/Base.pm blib/lib/PocketIO/Transport/Base.pm
cp lib/PocketIO/Socket.pm blib/lib/PocketIO/Socket.pm
cp lib/PocketIO/Broadcast.pm blib/lib/PocketIO/Broadcast.pm
cp lib/PocketIO/Transport/JSONPPolling.pm blib/lib/PocketIO/Transport/JSONPPolling.pm
cp lib/PocketIO.pm blib/lib/PocketIO.pm
cp lib/PocketIO/Pool/Redis.pm blib/lib/PocketIO/Pool/Redis.pm
cp lib/PocketIO/Transport/WebSocket.pm blib/lib/PocketIO/Transport/WebSocket.pm
cp lib/PocketIO/Handle.pm blib/lib/PocketIO/Handle.pm
cp lib/PocketIO/Sockets.pm blib/lib/PocketIO/Sockets.pm
cp lib/PocketIO/Transport/Htmlfile.pm blib/lib/PocketIO/Transport/Htmlfile.pm
cp lib/PocketIO/Transport/BasePolling.pm blib/lib/PocketIO/Transport/BasePolling.pm
cp lib/PocketIO/Test.pm blib/lib/PocketIO/Test.pm
cp lib/PocketIO/Message.pm blib/lib/PocketIO/Message.pm
PERL_DL_NONLAZY=1 /home/ytnobody/perl5/perlbrew/perls/perl-5.12.3/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t
t/app.t ...................... ok
t/conn/broadcast.t ........... ok
t/conn/close-timeout.t ....... ok
t/conn/connect-timeout.t ..... ok
t/conn/parsing.t ............. ok
t/conn/reconnect-timeout.t ... ok
t/conn/socket.t .............. ok
t/conn/sockets.t ............. ok
t/message.t .................. ok
t/pool.t ..................... ok
t/resource.t ................. ok
t/transport/htmlfile.t ....... ok
t/transport/jsonp-polling.t .. ok
t/transport/websocket.t ...... 1/2 # Looks like you planned 2 tests but ran 1.
t/transport/websocket.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/2 subtests
t/transport/xhr-polling.t .... ok

Test Summary Report
-------------------
t/transport/websocket.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 2 tests but ran 1.
Files=15, Tests=78, 3 wallclock secs ( 0.07 usr 0.03 sys + 1.67 cusr 0.24 csys = 2.01 CPU)
Result: FAIL
Failed 1/15 test programs. 0/78 subtests failed.
make: *** [test_dynamic] エラー 255
[ytnobody@ytnobody PocketIO-0.00905]$ make test
PERL_DL_NONLAZY=1 /home/ytnobody/perl5/perlbrew/perls/perl-5.12.3/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t
t/app.t ...................... ok
t/conn/broadcast.t ........... ok
t/conn/close-timeout.t ....... ok
t/conn/connect-timeout.t ..... ok
t/conn/parsing.t ............. ok
t/conn/reconnect-timeout.t ... ok
t/conn/socket.t .............. ok
t/conn/sockets.t ............. ok
t/message.t .................. ok
t/pool.t ..................... ok
t/resource.t ................. ok
t/transport/htmlfile.t ....... ok
t/transport/jsonp-polling.t .. ok
t/transport/websocket.t ...... ok
t/transport/xhr-polling.t .... ok
All tests successful.
Files=15, Tests=79, 2 wallclock secs ( 0.08 usr 0.04 sys + 1.65 cusr 0.25 csys = 2.02 CPU)
Result: PASS