From 81f16261f4d5d2cb1217569cc6580c0326b9eae2 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Sun, 5 Aug 2012 21:40:56 +0200 Subject: [PATCH] tests/gem_reg_read: actually wait a bit between reading TIMESTAMP reg QA could only hit this on ilk because the timer increase quite a bit slower on that platform than on gen6+ (80ns vs 320ns, iirc). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=52937 --- tests/gem_reg_read.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/gem_reg_read.c b/tests/gem_reg_read.c index 987ca6e1..1d6db1f1 100644 --- a/tests/gem_reg_read.c +++ b/tests/gem_reg_read.c @@ -81,6 +81,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); val = timer_query(fd); + sleep(1); if (timer_query(fd) == val) { fprintf(stderr, "Timer isn't moving, probably busted\n"); exit(EXIT_FAILURE);