diff options
author | Feceoru, Gabriel <gabriel.feceoru@intel.com> | 2016-05-13 14:45:09 +0300 |
---|---|---|
committer | Marius Vlad <marius.c.vlad@intel.com> | 2016-05-16 18:20:41 +0300 |
commit | 5cc3175ca5a0374c17bd201ba5a35ef4ff076003 (patch) | |
tree | 45e0463e74f9a0803c195bb7f386c5898fdcdfc0 /lib/igt_aux.c | |
parent | c785a89ee61807d2e8d76847481225e649aa5aec (diff) |
tests/kms_flip: Adjust tolerance when counting frames
basic-flip-vs-wf_vblank subtest sometimes fails asserting counted frames to
be aproximately equal with the estimated number.
This is a false negative, one of the reasons being the precision lost when
truncating a fractional number.
Fixed this by using floating point arithmetic.
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95380 [mvlad]
Signed-off-by: Gabriel Feceoru <gabriel.feceoru@intel.com>
Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
Diffstat (limited to 'lib/igt_aux.c')
0 files changed, 0 insertions, 0 deletions