Bug#799718: libthread-pool-perl: nondeterministic test failure in t/Pool01.t

Niko Tyni ntyni at debian.org
Mon Sep 21 19:11:14 UTC 2015


Package: libthread-pool-perl
Version: 0.33-1
Severity: important

This package failed to build in the reproducible.debian.net CI setup,
and I can reproduce this locally by running the test in a loop while
loading the host. Apparently there's a race condition in the test suite.

  t/Pool01.t .. 
  1..42
  ok 1 - use Thread::Pool;
  # Test general functionality
  ok 2 - 'check object type' isa 'Thread::Pool'
  ok 3 - Thread::Pool->can(...)
  ok 4 - check number of workers
  ok 5 - check \# jobs todo, \#1
  ok 6 - check number of workers, \#1
  ok 7 - check first jobid
  ok 8 - check second jobid
  ok 9 - check tid of 2nd worker thread
  ok 10 - check number of workers, \#2
  ok 11 - check number of workers, \#3
  ok 12 - check number of workers, \#4
  ok 13 - check number of removed, \#1
  not ok 14 - check \# jobs todo, \#2
  #   Failed test 'check \# jobs todo, \#2'
  #   at t/Pool01.t line 77.
  ok 15 - check result_dontwait
  ok 16 - check result
  ok 17 - check third jobid
  ok 18 - check result remove
  ok 19 - check number of workers, \#5
  ok 20 - check number of removed, \#2
  ok 21 - check for remaining threads
  ok 22 - check number of workers, \#6
  ok 23 - check number of removed, \#3
  ok 24 - check \# jobs todo, \#3
  ok 25 - check \# jobs done, \#3
  ok 26 - check not-used threads, \#1
  ok 27 - 'check object type' isa 'Thread::Pool'
  ok 28 - check fourth jobid
  ok 29 - check number of workers, \#7
  ok 30 - check result after add
  ok 31 - check result waitfor
  ok 32 - check fifth jobid
  ok 33 - check result after add
  ok 34 - check whether job id found ok
  ok 35 - check sixth jobid
  ok 36 - check result remove_me
  ok 37 - check \# jobs todo, \#4
  ok 38 - check \# jobs done, \#4
  ok 39 - check number of workers, \#7
  ok 40 - check number of removed, \#4
  ok 41 - check for remaining threads
  ok 42 - check not-used threads, \#2
  # Looks like you failed 1 test of 42.
  Dubious, test returned 1 (wstat 256, 0x100)
  Failed 1/42 subtests 
 
-- 
Niko Tyni   ntyni at debian.org



More information about the pkg-perl-maintainers mailing list