From ee014dbb8d98ada16a4829ff9878af6d4a06dcad Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 11 Apr 2012 14:55:30 +0200 Subject: tests/sysfs_rc6_residency: add some sleep before testing That way I can run i-g-t on my ivb without spurious failures. Signed-Off-by: Daniel Vetter --- tests/sysfs_rc6_residency.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/sysfs_rc6_residency.c') diff --git a/tests/sysfs_rc6_residency.c b/tests/sysfs_rc6_residency.c index e539cf99..3fcdbeb7 100644 --- a/tests/sysfs_rc6_residency.c +++ b/tests/sysfs_rc6_residency.c @@ -66,6 +66,10 @@ int main(int argc, char *argv[]) ret = asprintf(&path, "/sys/class/drm/card%d/power/rc6_enable", device); assert(ret != -1); + /* For some reason my ivb isn't idle even after syncing up with the gpu. + * Let's add a sleept just to make it happy. */ + sleep(5); + if (readit(path) == 0) exit(EXIT_SUCCESS); -- cgit v1.2.3