From 31f71d62d5ffb1ab6298517c5cd5f0dac3b8a35a Mon Sep 17 00:00:00 2001 From: Gabriel Krisman Bertazi Date: Tue, 20 Jun 2017 01:11:28 -0300 Subject: igt/kms_pipe_crc_basic: Skip test before system suspend 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 Reviewed-by: Petri Latvala --- tests/kms_pipe_crc_basic.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/kms_pipe_crc_basic.c') diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c index 17721124..35adddba 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); -- cgit v1.2.3