tests/pm_pc8: add gem-idle subtest
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 18 Feb 2014 17:27:19 +0000 (14:27 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 21 Feb 2014 13:07:55 +0000 (10:07 -0300)
It's triggering WARNs and DRM_ERRORs on current drm-intel-nighly.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
tests/pm_pc8.c

index 982b82e..1c85973 100644 (file)
@@ -1376,6 +1376,17 @@ static void gem_execbuf_stress_subtest(int rounds, int wait_flags)
        gem_close(drm_fd, handle);
 }
 
+/* When this test was written, it triggered WARNs and DRM_ERRORs on dmesg. */
+static void gem_idle_subtest(void)
+{
+       disable_all_screens(&ms_data);
+       igt_assert(wait_for_suspended());
+
+       sleep(5);
+
+       gem_quiescent_gpu(drm_fd);
+}
+
 int main(int argc, char *argv[])
 {
        int rounds = 50;
@@ -1415,6 +1426,8 @@ int main(int argc, char *argv[])
                gem_pread_subtest();
        igt_subtest("gem-execbuf")
                gem_execbuf_subtest();
+       igt_subtest("gem-idle")
+               gem_idle_subtest();
 
        /* Misc */
        igt_subtest("i2c")