tests/kms_pipe_crc_basic: Add suspend tests
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 May 2014 14:27:44 +0000 (16:27 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 May 2014 14:27:44 +0000 (16:27 +0200)
Currently broken ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/kms_pipe_crc_basic.c

index 282c7f6..eedb3f3 100644 (file)
@@ -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 {