diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-31 14:06:10 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-08-31 16:19:57 +0100 |
commit | 9d83154c898b5acc8b462d17104df50cfd71e9a0 (patch) | |
tree | 6146ef9b077c3e35779731c75b2a092fee17e7e5 /tests | |
parent | 377752242995fda45d4557f8f541703c1cf7a2d2 (diff) |
tests/kms_vblank: Test if we have functional rpm before testing
We want to test that provoking a vblank interrupt works correctly after
waking up from runtime-pm. First though, we must wait for the device to
enter runtime-suspend. If the device cannot, e.g. we haven't enabled the
DMC firmware, the test should skip because our external requirements are
not met.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107768
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_vblank.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c index 508c0fa0..b3cd2d93 100644 --- a/tests/kms_vblank.c +++ b/tests/kms_vblank.c @@ -352,7 +352,7 @@ static void vblank_ts_cont(data_t *data, int fd, int nchildren) } if (data->flags & RPM) - igt_assert(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED)); + igt_require(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED)); if (data->flags & SUSPEND) igt_system_suspend_autoresume(SUSPEND_STATE_MEM, |