[Bug 1110326] New: perl-Time-Mock-0.0.2-5.fc21 FTBFS on heavily loaded machine

bugzilla at redhat.com bugzilla at redhat.com
Tue Jun 17 12:54:03 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1110326

            Bug ID: 1110326
           Summary: perl-Time-Mock-0.0.2-5.fc21 FTBFS on heavily loaded
                    machine
           Product: Fedora
           Version: rawhide
         Component: perl-Time-Mock
          Assignee: yaneti at declera.com
          Reporter: ppisar at redhat.com
        QA Contact: extras-qa at fedoraproject.org
                CC: perl-devel at lists.fedoraproject.org, yaneti at declera.com



perl-Time-Mock-0.0.2-5.fc21 fails to build if the host is heavily loaded. Then
some test sensitive to elapsed time will not pass:

#   Failed test at t/import.t line 17.
#     '1402724184'
#         <=
#     '1402724180'
# Looks like you failed 1 test of 7.
t/import.t ... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed

This is causes by this code:

my $start = time;
cmp_ok($start, '>=', $otime + 10_000);
sleep(1);
my $end = time;
cmp_ok($end, '>=', $start + 1);
cmp_ok($end, '<=', $start + 2);

The last cmp_ok() test will fail if the running time is more then 2 throttled
seconds (2/100 real seconds).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=aU5DdEmpOZ&a=cc_unsubscribe



More information about the perl-devel mailing list