[svk-devel] "make test" failures from r2078 of SVK trunk
Derek Atkins
warlord at MIT.EDU
Wed Nov 1 00:59:58 EST 2006
Quoting Michael Hendricks <michael at ndrix.org>:
> On Tue, Oct 31, 2006 at 01:32:24PM -0500, Derek Atkins wrote:
>> I just updated to r2078 but there appear to be a number of
>> test failures. What do these test failures mean?
>
> clkao reported similar failures on a BSD box. It looks like there's a
> problem with is_binary_file in SVK::Util. That seems strange to me
> since that sub is basically just a call to Perl's "-T" file test
> operator. I haven't been able to duplicate the problem locally. Could
> you try the following from inside a checkout of trunk?
>
> prove -l t/20add-nomime.t
This failed. Failure is attached below...
> perl -Ilib -MSVK::Util=is_binary_file -e 'print "binary\n" if
> is_binary_file(shift)' t/checkout/add-nomime/mime/false.bin
This gave no output.
> If is_binary_file is working correctly, you should get no output. If
> it's broken, you'd see "binary"
>
> --
> Michael
The full output:
[warlord at cliodev trunk]$ env
PERL5LIB=/opt/svk/lib/perl5/site_perl/5.8.8:/opt/svk/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi:/opt/svk/lib/perl5/5.8.8/i386-linux-thread-multi
prove -l t/20add-nomime.t
t/20add-nomime....NOK 1
# Failed test 'add mime'
# in t/20add-nomime.t at line 19.
# Structures begin differing at:
# $got->[2] = 'A mime/false.bin - (bin)'
# $expected->[2] = 'A mime/false.bin'
t/20add-nomime....NOK 2
# Failed test 'pl -v mime/empty.txt mime/false.bin mime/foo.bin mime/foo.c
mime/foo.html mime/foo.jpg mime/foo.pl mime/foo.txt mime/not-audio.txt'
# in t/20add-nomime.t at line 31.
# Structures begin differing at:
# $got->[0] = 'Properties on mime/empty.txt:'
# $expected->[0] = 'Properties on mime/foo.bin:'
# Looks like you failed 2 tests of 2.
t/20add-nomime....dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/20add-nomime.t 2 512 2 2 100.00% 1-2
Failed 1/1 test scripts, 0.00% okay. 2/2 subtests failed, 0.00% okay.
[warlord at cliodev trunk]$ env
PERL5LIB=/opt/svk/lib/perl5/site_perl/5.8.8:/opt/svk/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi:/opt/svk/lib/perl5/5.8.8/i386-linux-thread-multi
perl -Ilib -MSVK::Util=is_binary_file -e 'print "binary\n" if
is_binary_file(shift)' t/checkout/add-nomime/mime/false.bin
[warlord at cliodev trunk]$
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the svk-devel
mailing list