diff mbox

[I-G-T,2/2] igt/kms_pipe_crc_basic: Skip test before system suspend

Message ID 20170620041128.12910-2-krisman@collabora.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Gabriel Krisman Bertazi June 20, 2017, 4:11 a.m. UTC
Do a dummy crc read such that if there are no valid outputs for the
pipe, it skip the test before doing a system suspend.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
---
 tests/kms_pipe_crc_basic.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index 177211249808..35adddba648a 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -222,6 +222,9 @@  igt_main
 
 		igt_subtest_f("suspend-read-crc-pipe-%c", 'A'+i) {
 			igt_skip_on(i >= data.display.n_pipes);
+
+			test_read_crc(&data, i, 0);
+
 			igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
 						      SUSPEND_TEST_NONE);