Subject: | Hangs at t/trunc.t when "make test" |
Dear Luis Muñoz,
Hi. This is imacat from Taiwan. I found that your IO-File-Log-1.01
hangs at t/trunc.t during "make test". I waited a long time before I
stopped it. I tried to dig into the code. It seems to hang at
$log->getline when $c = 5.
The terminal log is attached below. Hope that this helps. Please
tell me if there is any problem, or if I could be of any help. Thank you.
imacat@rinse tmp/IO-File-Log-1.01 % perl -v
This is perl, v5.8.8 built for x86_64-linux-thread-multi-ld
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
imacat@rinse tmp/IO-File-Log-1.01 % perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for IO::File::Log
imacat@rinse tmp/IO-File-Log-1.01 % make
cp Log.pm blib/lib/IO/File/Log.pm
Manifying blib/man3/IO::File::Log.3
imacat@rinse tmp/IO-File-Log-1.01 % make test
t/basic........ok
t/grow.........ok
t/rotate.......ok
t/sgrow........ok
t/srotate......ok
t/trunc........1/11
# Failed test 'Read of 4'
# at t/trunc.t line 46.
# got: '9
# '
# expected: '4
# '
make: *** wait: No child processes. Stop.
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
imacat@rinse tmp/IO-File-Log-1.01 % perl -Iblib/lib -Iblib/arch t/trunc.t
1..11
ok 1 - new()
ok 2 - Correct type
ok 3 - Read of 1
ok 4 - Read of 2
ok 5 - Read of 3
not ok 6 - Read of 4
# Failed test 'Read of 4'
# at t/trunc.t line 46.
# got: '9
# '
# expected: '4
# '
imacat@rinse tmp/IO-File-Log-1.01 %