summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-12 14:00:09 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-13 11:19:10 +0200
commit932716dd918a25ee49a4c8a9931a9a65dfd60486 (patch)
tree04d8329e572d748e737ecac0a8b7719ac99c1f5c /lib/drmtest.c
parent506ef293abfc83a79ae1e58193ee88bce5c667ce (diff)
lib/drmtest: skip suspend tests in simulation
The simulator doesn't like this nor really support it :( v2: We've tried to a more gentle resume testing using the pm_test infrastructure, but that alos failed. So add a FIXME comment that we need to improve things a bit here. Cc: Ben Widawsky <benjamin.widawsky@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r--lib/drmtest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index abd45b61..1ba8cad4 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -2087,6 +2087,11 @@ void igt_system_suspend_autoresume(void)
{
int ret;
+ /* FIXME: Simulation doesn't like suspend/resume, and not even a lighter
+ * approach using /sys/power/pm_test to just test our driver's callbacks
+ * seems to fare better. We need to investigate what's going on. */
+ igt_skip_on_simulation();
+
ret = system("rtcwake -s 30 -m mem");
igt_assert(ret == 0);
}