Bug#688314: Testcase is racy

Sjoerd Simons sjoerd at debian.org
Fri Sep 21 12:39:51 UTC 2012


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.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.5-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libipc-run-perl depends on:
ii  libio-pty-perl  1:1.08-1+b2
ii  perl            5.14.2-13

libipc-run-perl recommends no packages.

libipc-run-perl suggests no packages.

-- no debconf information



More information about the pkg-perl-maintainers mailing list