[Intel-gfx] [PATCH 1/2] tests/kms_pipe_crc_basic: Add suspend tests

Daniel Vetter daniel.vetter at ffwll.ch
Thu May 22 17:39:57 CEST 2014


Currently broken ...

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 tests/kms_pipe_crc_basic.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index 282c7f68150a..eedb3f399e45 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -30,6 +30,7 @@
 #include "drmtest.h"
 #include "igt_debugfs.h"
 #include "igt_kms.h"
+#include "igt_aux.h"
 
 typedef struct {
 	int drm_fd;
@@ -160,6 +161,12 @@ igt_main
 
 		igt_subtest_f("read-crc-pipe-%c-frame-sequence", 'A'+i)
 			test_read_crc(&data, i, TEST_SEQUENCE);
+
+		igt_subtest_f("suspend-read-crc-pipe-%c", 'A'+i) {
+			igt_system_suspend_autoresume();
+
+			test_read_crc(&data, i, 0);
+		}
 	}
 
 	igt_fixture {
-- 
1.8.4.rc3




More information about the Intel-gfx mailing list