[Kde-perl] Qt4-0.60_b1 build report

Chris Burel chrisburel at gmail.com
Sat Dec 19 02:50:33 CET 2009


> Output from './Build test':
> t/a_loading.t .......... ok
> t/c_qapp.t ............. ok
> t/d_sigslot.t .......... ok
> t/e_sigslot_inherit.t .. ok
> t/f_handlers.t ......... 1/23
> #   Failed test 'double'
> #   at t/f_handlers.t line 47.
> #          got: '0,428571428571428548'
> #     expected: '0,428571428571428571'
>
> #   Failed test 'double'
> #   at t/f_handlers.t line 48.
> #          got: '0,857142857142857095'
> #     expected: '0,857142857142857143'

I created a bug report on the project page for this issue:
http://code.google.com/p/perlqt4/issues/detail?id=25

> t/f_handlers.t ......... 21/23 Can't use string ("0") as an ARRAY ref while
> "strict refs" in use at /home/daxim/.cpan/build/Qt4-0.60_b1-
> SwlJVB/blib/lib/Qt4.pm line 971.
> # Looks like you planned 23 tests but ran 21.
> # Looks like you failed 2 tests of 21 run.
> # Looks like your test exited with 2 just after 21.
> t/f_handlers.t ......... Dubious, test returned 2 (wstat 512, 0x200)
> Failed 4/23 subtests

The attached patch should fix this.

> No coverage information is collected for the XS part.
>
>
> Output from 'cover':
> ---------------------------- ------ ------ ------ ------ ------ ------ ------
> File                           stmt   bran   cond    sub    pod   time  total
> ---------------------------- ------ ------ ------ ------ ------ ------ ------
> blib/lib/Qt4.pm                35.2   19.1   33.3   45.8    n/a   99.8   31.2
> blib/lib/Qt4/isa.pm            98.1   60.0    n/a   90.9    n/a    0.1   91.9
> blib/lib/Qt4/signals.pm        94.4   50.0    n/a   85.7    n/a    0.0   84.9
> blib/lib/Qt4/slots.pm         100.0   50.0    n/a  100.0    n/a    0.1   90.7
> Total                          41.9   21.0   33.3   53.8    n/a  100.0   36.8
> ---------------------------- ------ ------ ------ ------ ------ ------ ------
>
>
> The preferred way of getting complete coverage information plain doesn't work.
>
>
> Output from 'cover -test':
cover attempts to determine if the module being built uses gcc, but
from what I can tell it appears to only be compatible with C code.
PerlQt4 uses C++, which cover -test chokes on.

I am planning on taking all of the examples and turning them into test
cases by using the QtTest module.  But that is not yet done.  That
would yield much higher coverage information.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Qt4-0.60_b1-findChildrenTest.patch
Type: text/x-patch
Size: 2001 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-perl/attachments/20091218/6441e970/attachment.patch 


More information about the Kde-perl mailing list