From 932716dd918a25ee49a4c8a9931a9a65dfd60486 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 12 Sep 2013 14:00:09 +0200 Subject: lib/drmtest: skip suspend tests in simulation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: Ville Syrjälä Cc: Damien Lespiau Signed-off-by: Daniel Vetter --- lib/drmtest.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/drmtest.c') 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); } -- cgit v1.2.3