diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-04-11 14:55:30 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-04-11 14:55:30 +0200 |
commit | ee014dbb8d98ada16a4829ff9878af6d4a06dcad (patch) | |
tree | 65a8d3ebfb6568f6e6176e77dd5f1c1885299d36 /tests | |
parent | f841f4028ca37c3e4b49240b7f999dd07709724c (diff) |
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 <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sysfs_rc6_residency.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |