Bug#688314: Testcase is racy

Salvatore Bonaccorso carnil at debian.org
Sat Sep 22 08:13:46 UTC 2012


Control: tags -1 + confirmed
Control: forwarded -1 https://rt.cpan.org/Public/Bug/Display.html?id=20105

Hi Sjoerd

On Fri, Sep 21, 2012 at 02:39:51PM +0200, Sjoerd Simons wrote:
> Package: libipc-run-perl
> Version: 0.92-1
> Severity: normal
> 
> Sometimes when building libipc-run-perl the testsuite fails as follows:
> 
> t/pty.t .. 1/32 
> #   Failed test at t/pty.t line 170.
> #          got: 'hello'
> #     expected: '(?^:^hello\r?\n(?!\n)$)'
> # Looks like you failed 1 test of 32.
> t/pty.t .. Dubious, test returned 1 (wstat 256, 0x100)
> Failed 1/32 subtests 
> 
> It looks like there is a race condition somewhere and can be reproduced using:
>   while [  $? -eq 0 ] ; do
>       PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/pty.t ;
>    done
> 
> Sometimes the test fails after just running it a few times, sometimes it takes
> 30 seconds. Which is most likely why it's not usually a problem to run the test
> on the debian build machines.

I can reproduce this in minimal unstable (running in a virtual
machine) (amd64) mostly every time -- and on my laptop as you noticed
sometimes after few times, sometimes it takes many loops until it
happens.

I found a bug already reported upstream, which seems to address
this[1].

 [1]: https://rt.cpan.org/Public/Bug/Display.html?id=20105

Regards,
Salvatore
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120922/27ff1397/attachment.pgp>


More information about the pkg-perl-maintainers mailing list