diff options
author | Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> | 2019-04-03 17:20:40 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-04-10 16:02:38 +0300 |
commit | 86c207e3b8bb0d499f62c8e2a2d6ee4c990d586c (patch) | |
tree | 66a1fd16a80b97d7e71b8a404f1a46850641a0a6 /tests/kms_color.c | |
parent | a1701d0bb565de68d2db279fdf4f95ecb0e61c59 (diff) |
igt: tests: kms_vblank: Stop using magic value
Lot of tests fail, when assertion checking
how many vblanks should have passed during
suspend/resume is compared to magic value 150.
At the same time even for failed cases, sometimes
it is clearly visible that there were no issue -
simply suspend took longer on that machine.
If suspend took around 10 s and we get roughly
60 vblanks per second the value then should be
around 600 and not 150.
This change removes 150 magic value and starts
to use calculation of what it is expected to
be instead of being hardcoded.
v2: Add possible error delta interval, where expected
vblanks must lie, i.e:
[estimated_vblanks - err, estimated_vblanks + err]
v3: Made an error range for estimated vblanks a bit less
strict.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104894
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_color.c')
0 files changed, 0 insertions, 0 deletions