Skip to content
Commit 04deeaa9 authored by Lucas A. M. Magalhaes's avatar Lucas A. M. Magalhaes Committed by Tulio Magno Quites Machado Filho
Browse files

Fix time/tst-cpuclock1 intermitent failures



This test fails intermittently in systems with heavy load as
CLOCK_PROCESS_CPUTIME_ID is subject to scheduler pressure.  Thus the
test boundaries were relaxed to keep it from failing on such systems.

A refactor of the spent time checking was made with some support
functions.  With the advantage to representing time jitter in percent
of the target.

The values used by the test boundaries are all empirical.

Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent 7c7bcf36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment