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
This commit is contained in:
Daniel Vetter 2012-08-05 21:40:56 +02:00
parent 41fe811feb
commit 81f16261f4

View File

@ -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);